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.ByteArrayBinaryTag
cast
(net.kyori.adventure.nbt.BinaryTag rawTag) static SlimePropertyByteArray
static SlimePropertyByteArray
protected net.kyori.adventure.nbt.ByteArrayBinaryTag
createTag
(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:
createTag
in classSlimeProperty<byte[],
net.kyori.adventure.nbt.ByteArrayBinaryTag>
-
readValue
protected byte[] readValue(net.kyori.adventure.nbt.ByteArrayBinaryTag tag) - Specified by:
readValue
in classSlimeProperty<byte[],
net.kyori.adventure.nbt.ByteArrayBinaryTag>
-
cast
protected net.kyori.adventure.nbt.ByteArrayBinaryTag cast(net.kyori.adventure.nbt.BinaryTag rawTag) - Specified by:
cast
in classSlimeProperty<byte[],
net.kyori.adventure.nbt.ByteArrayBinaryTag>
-