diff options
author | madmaxoft <github@xoft.cz> | 2014-08-09 14:25:49 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-08-09 14:25:49 +0200 |
commit | 4b1505f39d6a77b0fd389d1170a1dcc901f602cd (patch) | |
tree | 036067995500e4d770eeecbf3e3b9b791d604bb5 /src/BlockEntities/DropSpenserEntity.h | |
parent | Debuggers: Simple cRankManager test case. (diff) | |
parent | Merge pull request #1295 from mc-server/crystal (diff) | |
download | cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.gz cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.bz2 cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.lz cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.xz cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.zst cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/BlockEntities/DropSpenserEntity.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/BlockEntities/DropSpenserEntity.h b/src/BlockEntities/DropSpenserEntity.h index 9f58d0b07..be56447aa 100644 --- a/src/BlockEntities/DropSpenserEntity.h +++ b/src/BlockEntities/DropSpenserEntity.h @@ -11,7 +11,7 @@ #pragma once #include "BlockEntityWithItems.h" - +#include "RedstonePoweredEntity.h" @@ -31,6 +31,9 @@ class cServer; // tolua_begin class cDropSpenserEntity : public cBlockEntityWithItems + // tolua_end + , public cRedstonePoweredEntity + // tolua_begin { typedef cBlockEntityWithItems super; @@ -64,10 +67,10 @@ public: /// Sets the dropspenser to dropspense an item in the next tick void Activate(void); - /// Sets the internal redstone power flag to "on" or "off", depending on the parameter. Calls Activate() if appropriate - void SetRedstonePower(bool a_IsPowered); - // tolua_end + + /// Sets the internal redstone power flag to "on" or "off", depending on the parameter. Calls Activate() if appropriate + virtual void SetRedstonePower(bool a_IsPowered) override; protected: bool m_ShouldDropSpense; ///< If true, the dropspenser will dropspense an item in the next tick |