private TagStringWriter writeIntArray(final IntArrayBinaryTag tag) throws IOException {
    if (this.legacy) {
      this.beginList();
    } else {
      this.beginArray(Tokens.TYPE_INT);
    }

    final int[] value = IntArrayBinaryTagImpl.value(tag);
    for (int i = 0, length = value.length; i < length; i++) {
      this.printAndResetSeparator(true);
      this.value(Integer.toString(value[i]), Tokens.TYPE_INT);
    }
    this.endArray();
    return this;
  }
Whether a {@link Tokens#VALUE_SEPARATOR} needs to be printed before the beginning of the next object.
nbt/src/main/java/net/kyori/adventure/nbt/TagStringWriter.java