static @NotNull BinaryTagType<? extends BinaryTag> binaryTagType(final byte id) {
    for (int i = 0; i < TYPES.size(); i++) {
      final BinaryTagType<? extends BinaryTag> type = TYPES.get(i);
      if (type.id() == id) {
        return type;
      }
    }
    throw new IllegalArgumentException(String.valueOf(id));
  }
Writes a tag.

@param tag the tag
@param output the output
@throws IOException if an exception was encountered while writing
@since 4.0.0
nbt/src/main/java/net/kyori/adventure/nbt/BinaryTagType.java