Class SlimePropertyDouble
java.lang.Object
com.infernalsuite.asp.api.world.properties.SlimeProperty<Double,net.kyori.adventure.nbt.DoubleBinaryTag>
com.infernalsuite.asp.api.world.properties.type.SlimePropertyDouble
public class SlimePropertyDouble
extends SlimeProperty<Double,net.kyori.adventure.nbt.DoubleBinaryTag>
-
Method Summary
Modifier and TypeMethodDescriptionprotected net.kyori.adventure.nbt.DoubleBinaryTag
cast
(net.kyori.adventure.nbt.BinaryTag rawTag) static SlimePropertyDouble
static SlimePropertyDouble
protected net.kyori.adventure.nbt.DoubleBinaryTag
protected Double
readValue
(net.kyori.adventure.nbt.DoubleBinaryTag tag) Methods inherited from class com.infernalsuite.asp.api.world.properties.SlimeProperty
applyValidator, getDefaultValue, getKey, getValidator, toString
-
Method Details
-
create
-
create
public static SlimePropertyDouble create(@NotNull @NotNull String key, double defaultValue, @NotNull @NotNull Function<Double, Boolean> validator) -
createTag
- Specified by:
createTag
in classSlimeProperty<Double,
net.kyori.adventure.nbt.DoubleBinaryTag>
-
readValue
- Specified by:
readValue
in classSlimeProperty<Double,
net.kyori.adventure.nbt.DoubleBinaryTag>
-
cast
protected net.kyori.adventure.nbt.DoubleBinaryTag cast(net.kyori.adventure.nbt.BinaryTag rawTag) - Specified by:
cast
in classSlimeProperty<Double,
net.kyori.adventure.nbt.DoubleBinaryTag>
-