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 Details

    • create

      public static SlimePropertyByteArray create(@NotNull @NotNull String key, byte[] defaultValue)
    • 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 class SlimeProperty<byte[],net.kyori.adventure.nbt.ByteArrayBinaryTag>
    • readValue

      protected byte[] readValue(net.kyori.adventure.nbt.ByteArrayBinaryTag tag)
      Specified by:
      readValue in class SlimeProperty<byte[],net.kyori.adventure.nbt.ByteArrayBinaryTag>
    • cast

      protected net.kyori.adventure.nbt.ByteArrayBinaryTag cast(net.kyori.adventure.nbt.BinaryTag rawTag)
      Specified by:
      cast in class SlimeProperty<byte[],net.kyori.adventure.nbt.ByteArrayBinaryTag>