From 3138daa1f8902a9e57d8ff2aa2951a194808b8ae Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 28 May 2013 18:50:44 +0000 Subject: Block entities now receive the cChunk param in their Tick() function They can safely access that chunk and any of its neighbors during ticking. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1526 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/DropperEntity.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source/DropperEntity.h') diff --git a/source/DropperEntity.h b/source/DropperEntity.h index 5f338dee8..ed29bfe95 100644 --- a/source/DropperEntity.h +++ b/source/DropperEntity.h @@ -35,7 +35,13 @@ public: protected: // cDropSpenserEntity overrides: - virtual void DropSpenseFromSlot(int a_SlotNum) override; + virtual void DropSpenseFromSlot(cChunk & a_Chunk, int a_SlotNum) override; + + /** Takes an item from slot a_SlotNum and puts it into the container in front of the dropper. + Called when there's a container directly in front of the dropper, + so the dropper should store items there, rather than dropping. + */ + void PutIntoContainer(cChunk & a_Chunk, int a_SlotNum, BLOCKTYPE a_ContainerBlock, int a_ContainerX, int a_ContainerY, int a_ContainerZ); } ; // tolua_export -- cgit v1.2.3