private TagStringWriter writeCompound(final CompoundBinaryTag tag) throws IOException {
    this.beginCompound();
    for (final Map.Entry<String, ? extends BinaryTag> entry : tag) {
      this.key(entry.getKey());
      this.writeTag(entry.getValue());
    }
    this.endCompound();
    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