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.ShortBinaryTagcast(net.kyori.adventure.nbt.BinaryTag rawTag) static SlimePropertyShortstatic SlimePropertyShortprotected net.kyori.adventure.nbt.ShortBinaryTagprotected ShortreadValue(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:
createTagin classSlimeProperty<Short,net.kyori.adventure.nbt.ShortBinaryTag>
-
readValue
- Specified by:
readValuein classSlimeProperty<Short,net.kyori.adventure.nbt.ShortBinaryTag>
-
cast
protected net.kyori.adventure.nbt.ShortBinaryTag cast(net.kyori.adventure.nbt.BinaryTag rawTag) - Specified by:
castin classSlimeProperty<Short,net.kyori.adventure.nbt.ShortBinaryTag>
-