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.FloatBinaryTag
cast
(net.kyori.adventure.nbt.BinaryTag rawTag) static SlimePropertyFloat
static SlimePropertyFloat
protected net.kyori.adventure.nbt.FloatBinaryTag
protected Float
readValue
(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:
createTag
in classSlimeProperty<Float,
net.kyori.adventure.nbt.FloatBinaryTag>
-
readValue
- Specified by:
readValue
in classSlimeProperty<Float,
net.kyori.adventure.nbt.FloatBinaryTag>
-
cast
protected net.kyori.adventure.nbt.FloatBinaryTag cast(net.kyori.adventure.nbt.BinaryTag rawTag) - Specified by:
cast
in classSlimeProperty<Float,
net.kyori.adventure.nbt.FloatBinaryTag>
-
create(String, float)
instead