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