Class SlimePropertyInt
java.lang.Object
com.infernalsuite.asp.api.world.properties.SlimeProperty<Integer,net.kyori.adventure.nbt.IntBinaryTag>
com.infernalsuite.asp.api.world.properties.type.SlimePropertyInt
A slime property of type integer
-
Constructor Summary
ConstructorsConstructorDescriptionSlimePropertyInt
(String key, Integer 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, int, Function)
instead -
Method Summary
Modifier and TypeMethodDescriptionprotected net.kyori.adventure.nbt.IntBinaryTag
cast
(net.kyori.adventure.nbt.BinaryTag rawTag) static SlimePropertyInt
static SlimePropertyInt
protected net.kyori.adventure.nbt.IntBinaryTag
protected Integer
readValue
(net.kyori.adventure.nbt.IntBinaryTag tag) Methods inherited from class com.infernalsuite.asp.api.world.properties.SlimeProperty
applyValidator, getDefaultValue, getKey, getValidator, toString
-
Constructor Details
-
SlimePropertyInt
Deprecated, for removal: This API element is subject to removal in a future version.Usecreate(String, int)
instead -
SlimePropertyInt
@Deprecated(forRemoval=true) public SlimePropertyInt(String key, Integer defaultValue, Function<Integer, Boolean> validator) Deprecated, for removal: This API element is subject to removal in a future version.Usecreate(String, int, Function)
instead
-
-
Method Details
-
create
-
create
public static SlimePropertyInt create(@NotNull @NotNull String key, int defaultValue, @NotNull @NotNull Function<Integer, Boolean> validator) -
createTag
- Specified by:
createTag
in classSlimeProperty<Integer,
net.kyori.adventure.nbt.IntBinaryTag>
-
readValue
- Specified by:
readValue
in classSlimeProperty<Integer,
net.kyori.adventure.nbt.IntBinaryTag>
-
cast
protected net.kyori.adventure.nbt.IntBinaryTag cast(net.kyori.adventure.nbt.BinaryTag rawTag) - Specified by:
cast
in classSlimeProperty<Integer,
net.kyori.adventure.nbt.IntBinaryTag>
-
create(String, int)
instead