Class ByteArrayTag

java.lang.Object
org.moddingx.launcherlib.nbt.tag.ArrayTag<Byte>
org.moddingx.launcherlib.nbt.tag.ByteArrayTag
All Implemented Interfaces:
Iterable<Byte>, Tag

public final class ByteArrayTag extends ArrayTag<Byte>
Byte array tag (TagType.BYTE_ARRAY).
  • Constructor Details

    • ByteArrayTag

      public ByteArrayTag()
      Creates an empty byte array tag.
    • ByteArrayTag

      public ByteArrayTag(byte[] elements)
      Creates a new byte array tag with the given contents.
    • ByteArrayTag

      public ByteArrayTag(List<Byte> elements)
      Creates a new byte array tag with the given contents.
  • Method Details

    • copy

      public ByteArrayTag copy()
      Description copied from interface: Tag
      Makes a copy of this tag. For immutable tags, this may return the same object.
      Specified by:
      copy in interface Tag
      Specified by:
      copy in class ArrayTag<Byte>
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object