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

#include <SchematicFileSerializer.h>

Static Public Member Functions

static void LoadFromSchematicFile (cBlockArea &a_BlockArea, const std::string &a_FileName)
 Loads an area from a .schematic file. More...
 
static void LoadFromSchematicString (cBlockArea &a_BlockArea, ContiguousByteBufferView a_SchematicData)
 Loads an area from a string containing the .schematic file data. More...
 
static void SaveToSchematicFile (const cBlockArea &a_BlockArea, const std::string &a_FileName)
 Saves the area into a .schematic file. More...
 
static Compression::Result SaveToSchematicString (const cBlockArea &a_BlockArea)
 Saves the area into a string containing the .schematic file data. More...
 

Static Private Member Functions

static void LoadFromSchematicNBT (cBlockArea &a_BlockArea, const cParsedNBT &a_NBT)
 Loads the area from a schematic file uncompressed and parsed into a NBT tree. More...
 
static ContiguousByteBuffer SaveToSchematicNBT (const cBlockArea &a_BlockArea)
 Saves the area into a NBT representation and returns the NBT data as a string. More...
 

Detailed Description

Definition at line 26 of file SchematicFileSerializer.h.

Member Function Documentation

◆ LoadFromSchematicFile()

void cSchematicFileSerializer::LoadFromSchematicFile ( cBlockArea a_BlockArea,
const std::string &  a_FileName 
)
static

Loads an area from a .schematic file.

Definition at line 19 of file SchematicFileSerializer.cpp.

◆ LoadFromSchematicNBT()

void cSchematicFileSerializer::LoadFromSchematicNBT ( cBlockArea a_BlockArea,
const cParsedNBT a_NBT 
)
staticprivate

Loads the area from a schematic file uncompressed and parsed into a NBT tree.

Definition at line 71 of file SchematicFileSerializer.cpp.

◆ LoadFromSchematicString()

void cSchematicFileSerializer::LoadFromSchematicString ( cBlockArea a_BlockArea,
ContiguousByteBufferView  a_SchematicData 
)
static

Loads an area from a string containing the .schematic file data.

Definition at line 36 of file SchematicFileSerializer.cpp.

◆ SaveToSchematicFile()

void cSchematicFileSerializer::SaveToSchematicFile ( const cBlockArea a_BlockArea,
const std::string &  a_FileName 
)
static

Saves the area into a .schematic file.

Definition at line 53 of file SchematicFileSerializer.cpp.

◆ SaveToSchematicNBT()

ContiguousByteBuffer cSchematicFileSerializer::SaveToSchematicNBT ( const cBlockArea a_BlockArea)
staticprivate

Saves the area into a NBT representation and returns the NBT data as a string.

Definition at line 168 of file SchematicFileSerializer.cpp.

◆ SaveToSchematicString()

Compression::Result cSchematicFileSerializer::SaveToSchematicString ( const cBlockArea a_BlockArea)
static

Saves the area into a string containing the .schematic file data.

Definition at line 62 of file SchematicFileSerializer.cpp.


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