Class IntArrayTag

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

public final class IntArrayTag extends ArrayTag<Integer>
Int array tag (TagType.INT_ARRAY).
  • Constructor Details

    • IntArrayTag

      public IntArrayTag()
      Creates an empty int array tag.
    • IntArrayTag

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

      public IntArrayTag(List<Integer> elements)
      Creates a new int array tag with the given contents.
  • Method Details

    • copy

      public IntArrayTag 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<Integer>
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object