default int@NotNull[] getIntArray(final @Range(from = 0, to = Integer.MAX_VALUE) int index) {
    final BinaryTag tag = this.get(index);
    if (tag.type() == BinaryTagTypes.INT_ARRAY) {
      return ((IntArrayBinaryTag) tag).value();
    }
    return new int[0];
  }
Gets an array of ints.

@param index the index
@return the array of ints, or a zero-length array
@since 4.0.0
nbt/src/main/java/net/kyori/adventure/nbt/ListBinaryTag.java