Class LongArrayTag

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

public final class LongArrayTag extends ArrayTag<Long>
Long array tag (TagType.LONG_ARRAY).
  • Constructor Details

    • LongArrayTag

      public LongArrayTag()
      Creates an empty long array tag.
    • LongArrayTag

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

      public LongArrayTag(List<Long> elements)
      Creates a new long array tag with the given contents.
  • Method Details

    • copy

      public LongArrayTag 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<Long>
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object