Cuberite
A lightweight, fast and extensible game server for Minecraft
Static Public Member Functions | List of all members
NBTChunkSerializer Class Reference

Saves the chunk data into a NBT format, used by the Anvil storage. More...

#include <NBTChunkSerializer.h>

Static Public Member Functions

static void Serialize (const cWorld &aWorld, cChunkCoords aCoords, cFastNBTWriter &aWriter)
 Serializes the chunk into the specified writer. More...
 

Detailed Description

Saves the chunk data into a NBT format, used by the Anvil storage.

The Writer is expected to be set up so that the serializer can write the chunk's top level "Level" NBT tag immediately. Provides a single static entry point that does all the work, through a hidden worker class in the CPP file.

Definition at line 20 of file NBTChunkSerializer.h.

Member Function Documentation

◆ Serialize()

void NBTChunkSerializer::Serialize ( const cWorld aWorld,
cChunkCoords  aCoords,
cFastNBTWriter aWriter 
)
static

Serializes the chunk into the specified writer.

The chunk must be present.

Definition at line 1192 of file NBTChunkSerializer.cpp.


The documentation for this class was generated from the following files: