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.DoubleBinaryTagcast(net.kyori.adventure.nbt.BinaryTag rawTag) static SlimePropertyDoublestatic SlimePropertyDoubleprotected net.kyori.adventure.nbt.DoubleBinaryTagprotected DoublereadValue(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:
createTagin classSlimeProperty<Double,net.kyori.adventure.nbt.DoubleBinaryTag>
-
readValue
- Specified by:
readValuein classSlimeProperty<Double,net.kyori.adventure.nbt.DoubleBinaryTag>
-
cast
protected net.kyori.adventure.nbt.DoubleBinaryTag cast(net.kyori.adventure.nbt.BinaryTag rawTag) - Specified by:
castin classSlimeProperty<Double,net.kyori.adventure.nbt.DoubleBinaryTag>
-