summaryrefslogtreecommitdiffstats
path: root/dev-docs/NBT Examples
diff options
context:
space:
mode:
authorWilliam 'psyFi' Hatcher <william@hatcher.work>2017-08-13 13:32:12 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2017-08-13 13:32:12 +0200
commit0cd8482f07aadab6de27aa7395de5408737093ad (patch)
treef6809d1a12db5ed885a98f260bdf95a21e3c2343 /dev-docs/NBT Examples
parentReplaced includes with forward declarations (diff)
downloadcuberite-0cd8482f07aadab6de27aa7395de5408737093ad.tar
cuberite-0cd8482f07aadab6de27aa7395de5408737093ad.tar.gz
cuberite-0cd8482f07aadab6de27aa7395de5408737093ad.tar.bz2
cuberite-0cd8482f07aadab6de27aa7395de5408737093ad.tar.lz
cuberite-0cd8482f07aadab6de27aa7395de5408737093ad.tar.xz
cuberite-0cd8482f07aadab6de27aa7395de5408737093ad.tar.zst
cuberite-0cd8482f07aadab6de27aa7395de5408737093ad.zip
Diffstat (limited to 'dev-docs/NBT Examples')
-rw-r--r--dev-docs/NBT Examples/single chunk NBT data.txt71
-rw-r--r--dev-docs/NBT Examples/tile entities.txt109
2 files changed, 180 insertions, 0 deletions
diff --git a/dev-docs/NBT Examples/single chunk NBT data.txt b/dev-docs/NBT Examples/single chunk NBT data.txt
new file mode 100644
index 000000000..905d6465c
--- /dev/null
+++ b/dev-docs/NBT Examples/single chunk NBT data.txt
@@ -0,0 +1,71 @@
+TAG_Compound(""): 1 items
+{
+ TAG_Compound("Level"): 10 items
+ {
+ TAG_List("TileTicks"): 0 items of type 1
+ {
+ }
+ TAG_List("Entities"): 0 items of type 1
+ {
+ }
+ TAG_ByteArray("Biomes"): 256 bytes
+ TAG_Long("LastUpdate"): 1041959
+ TAG_Int("xPos"): 0
+ TAG_Int("zPos"): 0
+ TAG_List("TileEntities"): 0 items of type 1
+ {
+ }
+ TAG_Byte("TerrainPopulated"): 1
+ TAG_List("Sections"): 6 items of type 10
+ {
+ TAG_Compound(""): 5 items
+ {
+ TAG_ByteArray("Data"): 2048 bytes
+ TAG_ByteArray("SkyLight"): 2048 bytes
+ TAG_ByteArray("BlockLight"): 2048 bytes
+ TAG_Byte("Y"): 0
+ TAG_ByteArray("Blocks"): 4096 bytes
+ }
+ TAG_Compound(""): 5 items
+ {
+ TAG_ByteArray("Data"): 2048 bytes
+ TAG_ByteArray("SkyLight"): 2048 bytes
+ TAG_ByteArray("BlockLight"): 2048 bytes
+ TAG_Byte("Y"): 1
+ TAG_ByteArray("Blocks"): 4096 bytes
+ }
+ TAG_Compound(""): 5 items
+ {
+ TAG_ByteArray("Data"): 2048 bytes
+ TAG_ByteArray("SkyLight"): 2048 bytes
+ TAG_ByteArray("BlockLight"): 2048 bytes
+ TAG_Byte("Y"): 2
+ TAG_ByteArray("Blocks"): 4096 bytes
+ }
+ TAG_Compound(""): 5 items
+ {
+ TAG_ByteArray("Data"): 2048 bytes
+ TAG_ByteArray("SkyLight"): 2048 bytes
+ TAG_ByteArray("BlockLight"): 2048 bytes
+ TAG_Byte("Y"): 3
+ TAG_ByteArray("Blocks"): 4096 bytes
+ }
+ TAG_Compound(""): 5 items
+ {
+ TAG_ByteArray("Data"): 2048 bytes
+ TAG_ByteArray("SkyLight"): 2048 bytes
+ TAG_ByteArray("BlockLight"): 2048 bytes
+ TAG_Byte("Y"): 4
+ TAG_ByteArray("Blocks"): 4096 bytes
+ }
+ TAG_Compound(""): 5 items
+ {
+ TAG_ByteArray("Data"): 2048 bytes
+ TAG_ByteArray("SkyLight"): 2048 bytes
+ TAG_ByteArray("BlockLight"): 2048 bytes
+ TAG_Byte("Y"): 5
+ TAG_ByteArray("Blocks"): 4096 bytes
+ }
+ }
+ }
+}
diff --git a/dev-docs/NBT Examples/tile entities.txt b/dev-docs/NBT Examples/tile entities.txt
new file mode 100644
index 000000000..e16ae45a7
--- /dev/null
+++ b/dev-docs/NBT Examples/tile entities.txt
@@ -0,0 +1,109 @@
+TAG_List("TileEntities"): 3 items of type 10
+{
+ TAG_Compound(""): 6 items
+ {
+ TAG_String("id"): 10 bytes: "MobSpawner"
+ TAG_Short("Delay"): 20
+ TAG_Int("z"): 180
+ TAG_String("EntityId"): 6 bytes: "Spider"
+ TAG_Int("y"): 11
+ TAG_Int("x"): -6
+ }
+ TAG_Compound(""): 5 items
+ {
+ TAG_List("Items"): 6 items of type 10
+ {
+ TAG_Compound(""): 4 items
+ {
+ TAG_Short("id"): 325
+ TAG_Short("Damage"): 0
+ TAG_Byte("Count"): 1
+ TAG_Byte("Slot"): 3
+ }
+ TAG_Compound(""): 4 items
+ {
+ TAG_Short("id"): 296
+ TAG_Short("Damage"): 0
+ TAG_Byte("Count"): 4
+ TAG_Byte("Slot"): 5
+ }
+ TAG_Compound(""): 4 items
+ {
+ TAG_Short("id"): 325
+ TAG_Short("Damage"): 0
+ TAG_Byte("Count"): 1
+ TAG_Byte("Slot"): 11
+ }
+ TAG_Compound(""): 4 items
+ {
+ TAG_Short("id"): 351
+ TAG_Short("Damage"): 3
+ TAG_Byte("Count"): 1
+ TAG_Byte("Slot"): 13
+ }
+ TAG_Compound(""): 4 items
+ {
+ TAG_Short("id"): 296
+ TAG_Short("Damage"): 0
+ TAG_Byte("Count"): 1
+ TAG_Byte("Slot"): 14
+ }
+ TAG_Compound(""): 4 items
+ {
+ TAG_Short("id"): 287
+ TAG_Short("Damage"): 0
+ TAG_Byte("Count"): 2
+ TAG_Byte("Slot"): 15
+ }
+ }
+ TAG_String("id"): 5 bytes: "Chest"
+ TAG_Int("z"): 182
+ TAG_Int("y"): 11
+ TAG_Int("x"): -7
+ }
+ TAG_Compound(""): 5 items
+ {
+ TAG_List("Items"): 5 items of type 10
+ {
+ TAG_Compound(""): 4 items
+ {
+ TAG_Short("id"): 289
+ TAG_Short("Damage"): 0
+ TAG_Byte("Count"): 1
+ TAG_Byte("Slot"): 5
+ }
+ TAG_Compound(""): 4 items
+ {
+ TAG_Short("id"): 329
+ TAG_Short("Damage"): 0
+ TAG_Byte("Count"): 1
+ TAG_Byte("Slot"): 12
+ }
+ TAG_Compound(""): 4 items
+ {
+ TAG_Short("id"): 265
+ TAG_Short("Damage"): 0
+ TAG_Byte("Count"): 4
+ TAG_Byte("Slot"): 17
+ }
+ TAG_Compound(""): 4 items
+ {
+ TAG_Short("id"): 296
+ TAG_Short("Damage"): 0
+ TAG_Byte("Count"): 4
+ TAG_Byte("Slot"): 21
+ }
+ TAG_Compound(""): 4 items
+ {
+ TAG_Short("id"): 289
+ TAG_Short("Damage"): 0
+ TAG_Byte("Count"): 2
+ TAG_Byte("Slot"): 22
+ }
+ }
+ TAG_String("id"): 5 bytes: "Chest"
+ TAG_Int("z"): 181
+ TAG_Int("y"): 11
+ TAG_Int("x"): -8
+ }
+} \ No newline at end of file