summaryrefslogtreecommitdiffstats
path: root/source/DropSpenserEntity.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-28 20:50:44 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-28 20:50:44 +0200
commit3138daa1f8902a9e57d8ff2aa2951a194808b8ae (patch)
treeb6270f3e69cc59420158973662b9de667e3f9e86 /source/DropSpenserEntity.h
parentMore dropspenser redstone interaction fixes. (diff)
downloadcuberite-3138daa1f8902a9e57d8ff2aa2951a194808b8ae.tar
cuberite-3138daa1f8902a9e57d8ff2aa2951a194808b8ae.tar.gz
cuberite-3138daa1f8902a9e57d8ff2aa2951a194808b8ae.tar.bz2
cuberite-3138daa1f8902a9e57d8ff2aa2951a194808b8ae.tar.lz
cuberite-3138daa1f8902a9e57d8ff2aa2951a194808b8ae.tar.xz
cuberite-3138daa1f8902a9e57d8ff2aa2951a194808b8ae.tar.zst
cuberite-3138daa1f8902a9e57d8ff2aa2951a194808b8ae.zip
Diffstat (limited to 'source/DropSpenserEntity.h')
-rw-r--r--source/DropSpenserEntity.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/DropSpenserEntity.h b/source/DropSpenserEntity.h
index d58f74f04..4918f8dfe 100644
--- a/source/DropSpenserEntity.h
+++ b/source/DropSpenserEntity.h
@@ -53,7 +53,7 @@ public:
// cBlockEntity overrides:
virtual void SaveToJson(Json::Value & a_Value) override;
- virtual bool Tick(float a_Dt) override;
+ virtual bool Tick(float a_Dt, cChunk & a_Chunk) override;
virtual void SendTo(cClientHandle & a_Client) override;
virtual void UsedBy(cPlayer * a_Player) override;
@@ -75,13 +75,13 @@ protected:
bool m_IsPowered; ///< Set to true when the dropspenser receives redstone power.
/// Does the actual work on dropspensing an item. Chooses the slot, calls DropSpenseFromSlot() and handles smoke / sound effects
- void DropSpense(void);
+ void DropSpense(cChunk & a_Chunk);
/// Override this function to provide the specific behavior for item dropspensing (drop / shoot / pour / ...)
- virtual void DropSpenseFromSlot(int a_SlotNum) = 0;
+ virtual void DropSpenseFromSlot(cChunk & a_Chunk, int a_SlotNum) = 0;
/// Helper function, drops one item from the specified slot (like a dropper)
- void DropFromSlot(int a_SlotNum);
+ void DropFromSlot(cChunk & a_Chunk, int a_SlotNum);
} ; // tolua_export