Class SlimePropertyByteArray
java.lang.Object
com.infernalsuite.asp.api.world.properties.SlimeProperty<byte[],net.kyori.adventure.nbt.ByteArrayBinaryTag>
com.infernalsuite.asp.api.world.properties.type.SlimePropertyByteArray
public class SlimePropertyByteArray
extends SlimeProperty<byte[],net.kyori.adventure.nbt.ByteArrayBinaryTag>
-
Method Summary
Modifier and TypeMethodDescriptionprotected net.kyori.adventure.nbt.ByteArrayBinaryTagcast(net.kyori.adventure.nbt.BinaryTag rawTag) static SlimePropertyByteArraystatic SlimePropertyByteArrayprotected net.kyori.adventure.nbt.ByteArrayBinaryTagcreateTag(byte[] value) protected byte[]readValue(net.kyori.adventure.nbt.ByteArrayBinaryTag tag) Methods inherited from class com.infernalsuite.asp.api.world.properties.SlimeProperty
applyValidator, getDefaultValue, getKey, getValidator, toString
-
Method Details
-
create
-
create
public static SlimePropertyByteArray create(@NotNull @NotNull String key, byte[] defaultValue, @NotNull @NotNull Function<byte[], Boolean> validator) -
createTag
protected net.kyori.adventure.nbt.ByteArrayBinaryTag createTag(byte[] value) - Specified by:
createTagin classSlimeProperty<byte[],net.kyori.adventure.nbt.ByteArrayBinaryTag>
-
readValue
protected byte[] readValue(net.kyori.adventure.nbt.ByteArrayBinaryTag tag) - Specified by:
readValuein classSlimeProperty<byte[],net.kyori.adventure.nbt.ByteArrayBinaryTag>
-
cast
protected net.kyori.adventure.nbt.ByteArrayBinaryTag cast(net.kyori.adventure.nbt.BinaryTag rawTag) - Specified by:
castin classSlimeProperty<byte[],net.kyori.adventure.nbt.ByteArrayBinaryTag>
-