summaryrefslogtreecommitdiffstats
path: root/source/DropSpenserEntity.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-26 22:52:39 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-26 22:52:39 +0200
commitedbc2790e31f27195835ef184a9d452bc83b2c56 (patch)
tree6d6904f240ad9e7d9f61ee99a9e6a18da4663a7c /source/DropSpenserEntity.h
parentClarified documentation on the cItemGrid:RemoveItem() functions (diff)
downloadcuberite-edbc2790e31f27195835ef184a9d452bc83b2c56.tar
cuberite-edbc2790e31f27195835ef184a9d452bc83b2c56.tar.gz
cuberite-edbc2790e31f27195835ef184a9d452bc83b2c56.tar.bz2
cuberite-edbc2790e31f27195835ef184a9d452bc83b2c56.tar.lz
cuberite-edbc2790e31f27195835ef184a9d452bc83b2c56.tar.xz
cuberite-edbc2790e31f27195835ef184a9d452bc83b2c56.tar.zst
cuberite-edbc2790e31f27195835ef184a9d452bc83b2c56.zip
Diffstat (limited to 'source/DropSpenserEntity.h')
-rw-r--r--source/DropSpenserEntity.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/DropSpenserEntity.h b/source/DropSpenserEntity.h
index d6e1144b1..f4221808c 100644
--- a/source/DropSpenserEntity.h
+++ b/source/DropSpenserEntity.h
@@ -67,13 +67,16 @@ public:
// tolua_end
-private:
+protected:
bool m_ShouldDropSpense; ///< If true, the dropspenser will dropspense an item in the next tick
void DropSpense(void);
/// Override this function to provide the specific behavior for item dropspensing (drop / shoot / pour / ...)
virtual void DropSpenseFromSlot(int a_SlotNum) = 0;
+
+ /// Helper function, drops one item from the specified slot (like a dropper)
+ void DropFromSlot(int a_SlotNum);
} ; // tolua_export