diff options
author | TheJumper <maximilian.springer@web.de> | 2014-02-23 19:35:56 +0100 |
---|---|---|
committer | TheJumper <maximilian.springer@web.de> | 2014-02-23 19:35:56 +0100 |
commit | 2f59517023765e8f5d5555adacafd146729ab071 (patch) | |
tree | bb5202265e994a69e16041a86e8199563ee6e940 /src/WorldStorage/WSSAnvil.h | |
parent | Added static Enchantment Constants, Replaced cryptic Looting ID (diff) | |
download | cuberite-2f59517023765e8f5d5555adacafd146729ab071.tar cuberite-2f59517023765e8f5d5555adacafd146729ab071.tar.gz cuberite-2f59517023765e8f5d5555adacafd146729ab071.tar.bz2 cuberite-2f59517023765e8f5d5555adacafd146729ab071.tar.lz cuberite-2f59517023765e8f5d5555adacafd146729ab071.tar.xz cuberite-2f59517023765e8f5d5555adacafd146729ab071.tar.zst cuberite-2f59517023765e8f5d5555adacafd146729ab071.zip |
Diffstat (limited to 'src/WorldStorage/WSSAnvil.h')
-rw-r--r-- | src/WorldStorage/WSSAnvil.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/WorldStorage/WSSAnvil.h b/src/WorldStorage/WSSAnvil.h index 541371560..4acf3f2a1 100644 --- a/src/WorldStorage/WSSAnvil.h +++ b/src/WorldStorage/WSSAnvil.h @@ -10,6 +10,7 @@ #include "WorldStorage.h" #include "FastNBT.h" +#include "../Mobs/Monster.h" @@ -194,12 +195,18 @@ protected: /// Loads entity common data from the NBT compound; returns true if successful bool LoadEntityBaseFromNBT(cEntity & a_Entity, const cParsedNBT & a_NBT, int a_TagIdx); + /// Loads monster common data from the NBT compound; returns true if successful + bool LoadMonsterBaseFromNBT(cMonster & a_Monster, const cParsedNBT & a_NBT, int a_TagIdx); + /// Loads projectile common data from the NBT compound; returns true if successful bool LoadProjectileBaseFromNBT(cProjectileEntity & a_Entity, const cParsedNBT & a_NBT, int a_TagIx); /// Loads an array of doubles of the specified length from the specified NBT list tag a_TagIdx; returns true if successful bool LoadDoublesListFromNBT(double * a_Doubles, int a_NumDoubles, const cParsedNBT & a_NBT, int a_TagIdx); + /// Loads an array of floats of the specified length from the specified NBT list tag a_TagIdx; returns true if successful + bool LoadFloatsListFromNBT(float * a_Floats, int a_NumFloats, const cParsedNBT & a_NBT, int a_TagIdx); + /// Helper function for extracting the X, Y, and Z int subtags of a NBT compound; returns true if successful bool GetBlockEntityNBTPos(const cParsedNBT & a_NBT, int a_TagIdx, int & a_X, int & a_Y, int & a_Z); |