summaryrefslogtreecommitdiffstats
path: root/source/WorldStorage/WSSAnvil.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-26 17:29:43 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-26 17:29:43 +0200
commit84a7e14e86b0bb4025e3c93d6a5d09ee8240a531 (patch)
tree05faa280268a55cadda98e8d6a3526078c1a7653 /source/WorldStorage/WSSAnvil.h
parentImplemented droppers (diff)
downloadcuberite-84a7e14e86b0bb4025e3c93d6a5d09ee8240a531.tar
cuberite-84a7e14e86b0bb4025e3c93d6a5d09ee8240a531.tar.gz
cuberite-84a7e14e86b0bb4025e3c93d6a5d09ee8240a531.tar.bz2
cuberite-84a7e14e86b0bb4025e3c93d6a5d09ee8240a531.tar.lz
cuberite-84a7e14e86b0bb4025e3c93d6a5d09ee8240a531.tar.xz
cuberite-84a7e14e86b0bb4025e3c93d6a5d09ee8240a531.tar.zst
cuberite-84a7e14e86b0bb4025e3c93d6a5d09ee8240a531.zip
Diffstat (limited to '')
-rw-r--r--source/WorldStorage/WSSAnvil.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/WorldStorage/WSSAnvil.h b/source/WorldStorage/WSSAnvil.h
index 640edd210..7281d687d 100644
--- a/source/WorldStorage/WSSAnvil.h
+++ b/source/WorldStorage/WSSAnvil.h
@@ -15,6 +15,13 @@
+// fwd: ItemGrid.h
+class cItemGrid;
+
+
+
+
+
enum
{
/// Maximum number of chunks in an MCA file - also the count of the header items
@@ -114,8 +121,15 @@ protected:
/// Loads a cItem contents from the specified NBT tag; returns true if successful. Doesn't load the Slot tag
bool LoadItemFromNBT(cItem & a_Item, const cParsedNBT & a_NBT, int a_TagIdx);
+ /** Loads contentents of an Items[] list tag into a cItemGrid
+ ItemGrid begins at the specified slot offset
+ Slots outside the ItemGrid range are ignored
+ */
+ void LoadItemGridFromNBT(cItemGrid & a_ItemGrid, const cParsedNBT & a_NBT, int a_ItemsTagIdx, int s_SlotOffset = 0);
+
void LoadChestFromNBT (cBlockEntityList & a_BlockEntities, const cParsedNBT & a_NBT, int a_TagIdx);
void LoadDispenserFromNBT (cBlockEntityList & a_BlockEntities, const cParsedNBT & a_NBT, int a_TagIdx);
+ void LoadDropperFromNBT (cBlockEntityList & a_BlockEntities, const cParsedNBT & a_NBT, int a_TagIdx);
void LoadFurnaceFromNBT (cBlockEntityList & a_BlockEntities, const cParsedNBT & a_NBT, int a_TagIdx);
void LoadSignFromNBT (cBlockEntityList & a_BlockEntities, const cParsedNBT & a_NBT, int a_TagIdx);
void LoadNoteFromNBT (cBlockEntityList & a_BlockEntities, const cParsedNBT & a_NBT, int a_TagIdx);