Reference: Minecraft Gamepedia
- Byte
- Short (signed 2 bytes Big Endian)
- Int (signed 4 bytes Big Endian)
- Long (signed 8 bytes Big Endian)
- Float (signed 4 bytes IEEE 754-2008 Big Endian)
- Double (signed 4 bytes IEEE 754-2008 Big Endian)
- ByteArray (variable size of bytes)
- String (string w/o 0-terminator)
- List (list of tags of same type)
- Compound (container for other tags)
- IntArray (variable size of 4 bytes)
- LongArray (variable size of 8 bytes)
-
Name ->
short_litstring -
Compound ->
0aName InnerCompound00 -
InnerCompound -> Tag InnerCompound |
epsilon -
IntPayloadSize ->
int_lit -
TypeId ->
01|02|03|04|05|06|07|08|09|0a|0b|0c -
Tag -> Byte | Short | Int | Long | Float | Double | ByteArray | String | List | Compound | IntArray | LongArray
-
Byte ->
01Namebyte_lit -
Short ->
02Nameshort_lit -
Int ->
03Nameint_lit -
Long ->
04Namelong_lit -
Float ->
05Namefloat_lit -
Double ->
06Namedouble_lit -
ByteArray ->
07Name IntPayloadSize ByteArrayList -
String ->
08Name ShortPayloadSize ByteArrayList -
List ->
09Name TypeId IntPayloadSize PayloadList -
Compound ->
0aName InnerCompound00 -
IntArray ->
0bName IntPayloadSize IntArrayList -
LongArray ->
0cName IntPayloadSize LongArrayList -
${i}ArrayList -> ${i} ${i}ArrayList |
epsilon