diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-07 23:09:55 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-07 23:09:55 +0100 |
commit | 7219e74c7ca47013fb5fe99707f38ae7417257af (patch) | |
tree | e3f459f1823679243cfac7a3ac94970a98eb5adf /source/WSSAnvil.h | |
parent | ChunkSender: Fixed a potential crash: removing a client means that no Send() is called on that client anymore (diff) | |
download | cuberite-7219e74c7ca47013fb5fe99707f38ae7417257af.tar cuberite-7219e74c7ca47013fb5fe99707f38ae7417257af.tar.gz cuberite-7219e74c7ca47013fb5fe99707f38ae7417257af.tar.bz2 cuberite-7219e74c7ca47013fb5fe99707f38ae7417257af.tar.lz cuberite-7219e74c7ca47013fb5fe99707f38ae7417257af.tar.xz cuberite-7219e74c7ca47013fb5fe99707f38ae7417257af.tar.zst cuberite-7219e74c7ca47013fb5fe99707f38ae7417257af.zip |
Diffstat (limited to '')
-rw-r--r-- | source/WSSAnvil.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/WSSAnvil.h b/source/WSSAnvil.h index f02a30119..1052d0e5a 100644 --- a/source/WSSAnvil.h +++ b/source/WSSAnvil.h @@ -26,6 +26,8 @@ enum // fwd: "NBT.h"
class cNBTTag;
+class cNBTList;
+class cNBTCompound;
@@ -81,6 +83,17 @@ protected: /// Loads the chunk from NBT data (no locking needed)
bool LoadChunkFromNBT(const cChunkCoords & a_Chunk, cNBTTag & a_NBT);
+ /// Loads the chunk's entities from NBT data (a_NBT is the Level\\Entities list tag; may be NULL)
+ void LoadEntitiesFromNBT(cEntityList & a_Entitites, const cNBTList * a_NBT);
+
+ /// Loads the chunk's BlockEntities from NBT data (a_NBT is the Level\\TileEntities list tag; may be NULL)
+ void LoadBlockEntitiesFromNBT(cBlockEntityList & a_BlockEntitites, const cNBTList * a_NBT);
+
+ void LoadChestFromNBT(cBlockEntityList & a_BlockEntities, const cNBTCompound * a_NBT);
+
+ /// Helper function for extracting the X, Y, and Z int subtags of a NBT compound; returns true if successful
+ bool GetBlockEntityNBTPos(const cNBTCompound * a_NBT, int & a_X, int & a_Y, int & a_Z);
+
/// Gets the correct MCA file either from cache or from disk, manages the m_MCAFiles cache; assumes m_CS is locked
cMCAFile * LoadMCAFile(const cChunkCoords & a_Chunk);
|