Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Collects and stores the chunk data via the cChunkDataCallback interface. More...
Public Member Functions | |
void | AddBannerEntity (cBannerEntity *a_Entity) |
void | AddBasicEntity (cEntity *a_Entity, const std::string_view a_ClassName) |
void | AddBasicTileEntity (cBlockEntity *a_Entity, const char *a_EntityTypeID) |
void | AddBeaconEntity (cBeaconEntity *a_Entity) |
void | AddBedEntity (cBedEntity *a_Entity) |
void | AddBoatEntity (cBoat *a_Boat) |
void | AddBrewingstandEntity (cBrewingstandEntity *a_Brewingstand) |
void | AddChestEntity (cChestEntity *a_Entity, BLOCKTYPE a_ChestType) |
void | AddCommandBlockEntity (cCommandBlockEntity *a_CmdBlock) |
void | AddDispenserEntity (cDispenserEntity *a_Entity) |
void | AddDropperEntity (cDropperEntity *a_Entity) |
void | AddEnchantingTableEntity (cEnchantingTableEntity *a_Entity) |
void | AddEnderchestEntity (cEnderChestEntity *a_Entity) |
void | AddEnderCrystalEntity (cEnderCrystal *a_EnderCrystal) |
void | AddEndPortalEntity (cEndPortalEntity *a_Entity) |
void | AddExpOrbEntity (cExpOrb *a_ExpOrb) |
void | AddFallingBlockEntity (cFallingBlock *a_FallingBlock) |
void | AddFlowerPotEntity (cFlowerPotEntity *a_FlowerPot) |
void | AddFurnaceEntity (cFurnaceEntity *a_Furnace) |
void | AddHangingEntity (cHangingEntity *a_Hanging) |
void | AddHopperEntity (cHopperEntity *a_Entity) |
void | AddItem (const cItem &a_Item, int a_Slot, const AString &a_CompoundName=AString()) |
Writes an item into the writer. More... | |
void | AddItemFrameEntity (cItemFrame *a_ItemFrame) |
void | AddItemGrid (const cItemGrid &a_Grid, int a_BeginSlotNum=0) |
Writes an item grid into the writer. More... | |
void | AddJukeboxEntity (cJukeboxEntity *a_Jukebox) |
void | AddLeashKnotEntity (cLeashKnot *a_LeashKnot) |
void | AddMinecartChestContents (cMinecartWithChest *a_Minecart) |
void | AddMinecartEntity (cMinecart *a_Minecart) |
void | AddMobHeadEntity (cMobHeadEntity *a_MobHead) |
void | AddMobSpawnerEntity (cMobSpawnerEntity *a_MobSpawner) |
void | AddMonsterEntity (cMonster *a_Monster) |
void | AddNoteEntity (cNoteEntity *a_Note) |
void | AddPaintingEntity (cPainting *a_Painting) |
void | AddPickupEntity (cPickup *a_Pickup) |
void | AddProjectileEntity (cProjectileEntity *a_Projectile) |
void | AddSignEntity (cSignEntity *a_Sign) |
void | AddTNTEntity (cTNTEntity *a_TNT) |
virtual void | BiomeMap (const cChunkDef::BiomeMap &a_BiomeMap) override |
virtual void | BlockEntity (cBlockEntity *a_Entity) override |
virtual void | Entity (cEntity *a_Entity) override |
void | Finish (void) |
virtual void | HeightMap (const cChunkDef::HeightMap &a_HeightMap) override |
virtual void | LightIsValid (bool a_IsLightValid) override |
SerializerCollector (cFastNBTWriter &aWriter) | |
Public Attributes | |
UInt8 | Biomes [cChunkDef::Width *cChunkDef::Width] |
int | Heights [cChunkDef::Width *cChunkDef::Width] |
bool | mHasHadBlockEntity |
True if any BlockEntity has already been received and processed. More... | |
bool | mHasHadEntity |
True if any Entity has already been received and processed. More... | |
bool | mIsLightValid |
True if the chunk lighting is valid. More... | |
bool | mIsTagOpen |
True if a tag has been opened in the callbacks and not yet closed. More... | |
cFastNBTWriter & | mWriter |
The NBT writer used to store the data. More... | |
Public Attributes inherited from cChunkDataCopyCollector | |
ChunkBlockData | m_BlockData |
ChunkLightData | m_LightData |
Collects and stores the chunk data via the cChunkDataCallback interface.
Definition at line 57 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 85 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 374 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 655 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 362 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 390 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 407 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 679 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 419 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 435 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 585 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 449 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 463 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 477 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 491 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 691 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 501 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 1116 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 712 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 642 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 512 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 1092 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 528 of file NBTChunkSerializer.cpp.
|
inline |
Writes an item into the writer.
If aSlot >= 0, adds the Slot tag. The compound is named as requested (empty name by default).
Definition at line 274 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 1129 of file NBTChunkSerializer.cpp.
|
inline |
Writes an item grid into the writer.
Begins the stored slot numbers with a_BeginSlotNum. Note that it doesn't begin nor end the list tag, so that multiple grids may be concatenated together using this function.
Definition at line 344 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 542 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 1144 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 1169 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 728 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 615 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 554 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 772 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 573 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 1156 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 1020 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 1033 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 600 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 1104 of file NBTChunkSerializer.cpp.
|
inlineoverridevirtual |
Definition at line 122 of file NBTChunkSerializer.cpp.
|
inlineoverridevirtual |
Definition at line 190 of file NBTChunkSerializer.cpp.
|
inlineoverridevirtual |
Definition at line 144 of file NBTChunkSerializer.cpp.
|
inline |
Definition at line 247 of file NBTChunkSerializer.cpp.
|
inlineoverridevirtual |
Definition at line 107 of file NBTChunkSerializer.cpp.
|
inlineoverridevirtual |
Definition at line 98 of file NBTChunkSerializer.cpp.
UInt8 SerializerCollector::Biomes[cChunkDef::Width *cChunkDef::Width] |
Definition at line 63 of file NBTChunkSerializer.cpp.
int SerializerCollector::Heights[cChunkDef::Width *cChunkDef::Width] |
Definition at line 64 of file NBTChunkSerializer.cpp.
bool SerializerCollector::mHasHadBlockEntity |
True if any BlockEntity has already been received and processed.
Definition at line 73 of file NBTChunkSerializer.cpp.
bool SerializerCollector::mHasHadEntity |
True if any Entity has already been received and processed.
Definition at line 70 of file NBTChunkSerializer.cpp.
bool SerializerCollector::mIsLightValid |
True if the chunk lighting is valid.
Definition at line 76 of file NBTChunkSerializer.cpp.
bool SerializerCollector::mIsTagOpen |
True if a tag has been opened in the callbacks and not yet closed.
Definition at line 67 of file NBTChunkSerializer.cpp.
cFastNBTWriter& SerializerCollector::mWriter |
The NBT writer used to store the data.
Definition at line 79 of file NBTChunkSerializer.cpp.