24 # if __STDC_VERSION__ < 199901L
35 #define SECTOR_BYTES 4096
36 #define SECTOR_INTS 1024
45 unsigned char keepopen : 1;
48 #define CHUNK_WIDTH 16
49 #define CHUNK_LENGTH 16
50 #define CHUNK_HEIGHT 256
132 #define chunk_from_coord(i) (i/16)
182 uint8_t allowCommands : 1;
183 uint8_t hardcore : 1;
192 uint8_t thundering : 1;
196 uint8_t commandBlockOutput : 1;
197 uint8_t doDaylightCycle : 1;
198 uint8_t doFireTick : 1;
199 uint8_t doMobLoot : 1;
200 uint8_t doMobSpawning : 1;
201 uint8_t doTileDrops : 1;
202 uint8_t keepInventory : 1;
203 uint8_t mobGriefing : 1;
204 uint8_t naturalRegeneration : 1;
level * open_level(char *filename)
regionfile * open_regionfile(char *filename)
size_t determine_region_file(char *buf, size_t len, int32_t cx, int32_t cz)
chunk * get_chunk(regionfile *region, int32_t cx, int32_t cz, uint16_t flags)
char * get_biome_name(uint8_t biome_id)
void for_each_chunk_raw(regionfile *region, raw_chunk_func function, void *context)
void for_each_chunk(regionfile *region, chunk_func function, void *context)
char * get_block_name(uint8_t block_id, uint8_t data)
int write_chunk(regionfile *region, int32_t cx, int32_t cz, chunk *c)
size_t count_chunks(regionfile *region)
void(* chunk_func)(chunk *c, void *context)
void free_region(regionfile *region)
int write_level(level *lvl, char *into)
int region_contains_chunk(regionfile *region, int32_t cx, int32_t cz)
void(* raw_chunk_func)(nbt_node *node, void *context)
uint8_t region_chunk_sector_count(regionfile *region, int32_t cx, int32_t cz)
void free_level(level *lvl)
void free_chunk(chunk *c)
unsigned char * freeSectors
chunk * nbt_to_chunk(nbt_node *node, uint16_t flags)
nbt_node * get_raw_chunk(regionfile *region, int32_t cx, int32_t cz)