github.com/df-mc/dragonfly@v0.9.13/server/world/mcdb/keys.go (about) 1 package mcdb 2 3 //lint:file-ignore U1000 Unused unexported constants are present for future code using these. 4 5 // Keys on a per-sub chunk basis. These are prefixed by the chunk coordinates and subchunk ID. 6 const ( 7 keySubChunkData = '/' // 2f 8 ) 9 10 // Keys on a per-chunk basis. These are prefixed by only the chunk coordinates. 11 const ( 12 // keyVersion holds a single byte of data with the version of the chunk. 13 keyVersion = ',' // 2c 14 // keyVersionOld was replaced by keyVersion. It is still used by vanilla to check compatibility, but vanilla no 15 // longer writes this tag. 16 keyVersionOld = 'v' // 76 17 // keyBlockEntities holds n amount of NBT compound tags appended to each other (not a TAG_List, just appended). The 18 // compound tags contain the position of the block entities. 19 keyBlockEntities = '1' // 31 20 // keyEntities holds n amount of NBT compound tags appended to each other (not a TAG_List, just appended). The 21 // compound tags contain the position of the entities. 22 keyEntities = '2' // 32 23 // keyFinalisation contains a single LE int32 that indicates the state of generation of the chunk. If 0, the chunk 24 // needs to be ticked. If 1, the chunk needs to be populated and if 2 (which is the state generally found in world 25 // saves from vanilla), the chunk is fully finalised. 26 keyFinalisation = '6' // 36 27 // key3DData holds 3-dimensional biomes for the entire chunk. 28 key3DData = '+' // 2b 29 // key2DData is no longer used in worlds with world height change. It was replaced by key3DData in newer worlds 30 // which has 3-dimensional biomes. 31 key2DData = '-' // 2d 32 // keyChecksum holds a list of checksums of some sort. It's not clear of what data this checksum is composed or what 33 // these checksums are used for. 34 keyChecksums = ';' // 3b 35 ) 36 37 // Keys on a per-world basis. These are found only once in a leveldb world save. 38 const ( 39 keyAutonomousEntities = "AutonomousEntities" 40 keyOverworld = "Overworld" 41 keyMobEvents = "mobevents" 42 keyBiomeData = "BiomeData" 43 keyScoreboard = "scoreboard" 44 keyLocalPlayer = "~local_player" 45 ) 46 47 const ( 48 finalisationGenerated = iota + 1 49 finalisationPopulated 50 )