2121import java .util .List ;
2222
2323/// This class represents the type of [tag][Tag] in NBT (Named Binary Tag) format.
24+ ///
25+ /// @see Tag
2426public abstract class TagType <T extends Tag > {
25- /// 1 byte signed integer type. Sometimes used for booleans .
27+ /// A [value tag][ValueTag] that holds a 1 byte integer or a boolean .
2628 ///
2729 /// @see ByteTag
2830 public static final TagType <ByteTag > BYTE = new TagType <>("TAG_Byte" , 0x01 , ByteTag .class ) {
@@ -32,7 +34,7 @@ public ByteTag createTag() {
3234 }
3335 };
3436
35- /// 2 byte signed integer type .
37+ /// A [value tag][ValueTag] that holds a 2 byte integer.
3638 ///
3739 /// @see ShortTag
3840 public static final TagType <ShortTag > SHORT = new TagType <>("TAG_Short" , 0x02 , ShortTag .class ) {
@@ -42,7 +44,7 @@ public ShortTag createTag() {
4244 }
4345 };
4446
45- /// 4 byte signed integer type .
47+ /// A [value tag][ValueTag] that holds a 4 byte integer.
4648 ///
4749 /// @see IntTag
4850 public static final TagType <IntTag > INT = new TagType <>("TAG_Int" , 0x03 , IntTag .class ) {
@@ -52,7 +54,7 @@ public IntTag createTag() {
5254 }
5355 };
5456
55- /// 8 byte signed integer type .
57+ /// A [value tag][ValueTag] that holds an 8 byte integer.
5658 ///
5759 /// @see LongTag
5860 public static final TagType <LongTag > LONG = new TagType <>("TAG_Long" , 0x04 , LongTag .class ) {
@@ -62,7 +64,7 @@ public LongTag createTag() {
6264 }
6365 };
6466
65- /// 4 byte floating point type .
67+ /// A [value tag][ValueTag] that holds a 4 byte floating point number .
6668 ///
6769 /// @see FloatTag
6870 public static final TagType <FloatTag > FLOAT = new TagType <>("TAG_Float" , 0x05 , FloatTag .class ) {
@@ -72,7 +74,7 @@ public FloatTag createTag() {
7274 }
7375 };
7476
75- /// 8 byte floating point type .
77+ /// A [value tag][ValueTag] that holds an 8 byte floating point number .
7678 ///
7779 /// @see DoubleTag
7880 public static final TagType <DoubleTag > DOUBLE = new TagType <>("TAG_Double" , 0x06 , DoubleTag .class ) {
@@ -82,7 +84,7 @@ public DoubleTag createTag() {
8284 }
8385 };
8486
85- /// An array of bytes .
87+ /// A tag that holds an array of [byte tag][ByteTag]s .
8688 ///
8789 /// @see ByteArrayTag
8890 public static final TagType <ByteArrayTag > BYTE_ARRAY = new TagType <>("TAG_Byte_Array" , 0x07 , ByteArrayTag .class ) {
@@ -92,7 +94,7 @@ public ByteArrayTag createTag() {
9294 }
9395 };
9496
95- /// A UTF-8 encoded string. It has a size, rather than being null terminated .
97+ /// A [value tag][ValueTag] that holds a Unicode string .
9698 ///
9799 /// @see StringTag
98100 public static final TagType <StringTag > STRING = new TagType <>("TAG_String" , 0x08 , StringTag .class ) {
@@ -102,7 +104,7 @@ public StringTag createTag() {
102104 }
103105 };
104106
105- /// A list of tag payloads, without tag IDs or names, apart from the one before the length .
107+ /// A [value tag][ValueTag] that holds a collection of other tags .
106108 ///
107109 /// @see ListTag
108110 public static final TagType <ListTag <?>> LIST = new TagType <>("TAG_List" , 0x09 , ListTag .class ) {
@@ -112,7 +114,7 @@ public ListTag<?> createTag() {
112114 }
113115 };
114116
115- /// A list of fully formed tags, including their IDs, names, and payloads. No two tags may have the same name .
117+ /// A [value tag][ValueTag] that holds a collection of named tags.
116118 ///
117119 /// @see CompoundTag
118120 public static final TagType <CompoundTag > COMPOUND = new TagType <>("TAG_Compound" , 0x0A , CompoundTag .class ) {
@@ -122,7 +124,7 @@ public CompoundTag createTag() {
122124 }
123125 };
124126
125- /// An array of 4 byte signed integers .
127+ /// A tag that holds an array of [int tag][IntTag]s .
126128 ///
127129 /// @see IntArrayTag
128130 public static final TagType <IntArrayTag > INT_ARRAY = new TagType <>("TAG_Int_Array" , 0x0B , IntArrayTag .class ) {
@@ -132,7 +134,7 @@ public IntArrayTag createTag() {
132134 }
133135 };
134136
135- /// An array of 8 byte signed integers .
137+ /// A tag that holds an array of [long tag][LongTag]s .
136138 ///
137139 /// @see LongArrayTag
138140 public static final TagType <LongArrayTag > LONG_ARRAY = new TagType <>("TAG_Long_Array" , 0x0C , LongArrayTag .class ) {
0 commit comments