Class SlimePropertyFloat
java.lang.Object
com.infernalsuite.asp.api.world.properties.SlimeProperty<Float,net.kyori.adventure.nbt.FloatBinaryTag>
com.infernalsuite.asp.api.world.properties.type.SlimePropertyFloat
A slime property of type float
-
Constructor Summary
ConstructorsConstructorDescriptionSlimePropertyFloat(String key, Float defaultValue) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.usecreate(String, float, Function)instead -
Method Summary
Modifier and TypeMethodDescriptionprotected net.kyori.adventure.nbt.FloatBinaryTagcast(net.kyori.adventure.nbt.BinaryTag rawTag) static SlimePropertyFloatstatic SlimePropertyFloatprotected net.kyori.adventure.nbt.FloatBinaryTagprotected FloatreadValue(net.kyori.adventure.nbt.FloatBinaryTag tag) Methods inherited from class com.infernalsuite.asp.api.world.properties.SlimeProperty
applyValidator, getDefaultValue, getKey, getValidator, toString
-
Constructor Details
-
SlimePropertyFloat
Deprecated, for removal: This API element is subject to removal in a future version.usecreate(String, float)instead -
SlimePropertyFloat
@Deprecated(forRemoval=true) public SlimePropertyFloat(String key, Float defaultValue, Function<Float, Boolean> validator) Deprecated, for removal: This API element is subject to removal in a future version.usecreate(String, float, Function)instead
-
-
Method Details
-
create
-
create
public static SlimePropertyFloat create(@NotNull @NotNull String key, float defaultValue, @NotNull @NotNull Function<Float, Boolean> validator) -
createTag
- Specified by:
createTagin classSlimeProperty<Float,net.kyori.adventure.nbt.FloatBinaryTag>
-
readValue
- Specified by:
readValuein classSlimeProperty<Float,net.kyori.adventure.nbt.FloatBinaryTag>
-
cast
protected net.kyori.adventure.nbt.FloatBinaryTag cast(net.kyori.adventure.nbt.BinaryTag rawTag) - Specified by:
castin classSlimeProperty<Float,net.kyori.adventure.nbt.FloatBinaryTag>
-
create(String, float)instead