Class SlimePropertyByte
java.lang.Object
com.infernalsuite.asp.api.world.properties.SlimeProperty<Byte,net.kyori.adventure.nbt.ByteBinaryTag>
com.infernalsuite.asp.api.world.properties.type.SlimePropertyByte
-
Method Summary
Modifier and TypeMethodDescriptionprotected net.kyori.adventure.nbt.ByteBinaryTagcast(net.kyori.adventure.nbt.BinaryTag rawTag) static SlimePropertyBytestatic SlimePropertyByteprotected net.kyori.adventure.nbt.ByteBinaryTagprotected BytereadValue(net.kyori.adventure.nbt.ByteBinaryTag tag) Methods inherited from class com.infernalsuite.asp.api.world.properties.SlimeProperty
applyValidator, getDefaultValue, getKey, getValidator, toString
-
Method Details
-
create
-
create
public static SlimePropertyByte create(@NotNull @NotNull String key, byte defaultValue, @NotNull @NotNull Function<Byte, Boolean> validator) -
createTag
- Specified by:
createTagin classSlimeProperty<Byte,net.kyori.adventure.nbt.ByteBinaryTag>
-
readValue
- Specified by:
readValuein classSlimeProperty<Byte,net.kyori.adventure.nbt.ByteBinaryTag>
-
cast
protected net.kyori.adventure.nbt.ByteBinaryTag cast(net.kyori.adventure.nbt.BinaryTag rawTag) - Specified by:
castin classSlimeProperty<Byte,net.kyori.adventure.nbt.ByteBinaryTag>
-