diff options
author | Bond-009 <bond.009@outlook.com> | 2020-03-27 13:03:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-27 13:03:28 +0100 |
commit | ea386eaab12206e585e01720808dc37585569535 (patch) | |
tree | 7f26c0241b45cd2551b5d2ab5fc28d920130b0b7 /src/BlockEntities/HopperEntity.h | |
parent | Merge #4552 (diff) | |
download | cuberite-ea386eaab12206e585e01720808dc37585569535.tar cuberite-ea386eaab12206e585e01720808dc37585569535.tar.gz cuberite-ea386eaab12206e585e01720808dc37585569535.tar.bz2 cuberite-ea386eaab12206e585e01720808dc37585569535.tar.lz cuberite-ea386eaab12206e585e01720808dc37585569535.tar.xz cuberite-ea386eaab12206e585e01720808dc37585569535.tar.zst cuberite-ea386eaab12206e585e01720808dc37585569535.zip |
Diffstat (limited to 'src/BlockEntities/HopperEntity.h')
-rw-r--r-- | src/BlockEntities/HopperEntity.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/BlockEntities/HopperEntity.h b/src/BlockEntities/HopperEntity.h index c57dce672..ef86a36bb 100644 --- a/src/BlockEntities/HopperEntity.h +++ b/src/BlockEntities/HopperEntity.h @@ -33,6 +33,8 @@ public: TICKS_PER_TRANSFER = 8, ///< How many ticks at minimum between two item transfers to or from the hopper } ; + + // tolua_end BLOCKENTITY_PROTODEF(cHopperEntity) @@ -45,6 +47,8 @@ public: Exported in ManualBindings.cpp. */ std::pair<bool, Vector3i> GetOutputBlockPos(NIBBLETYPE a_BlockMeta); + void SetLocked(bool a_Value); + protected: Int64 m_LastMoveItemsInTick; @@ -91,6 +95,10 @@ protected: /** Moves one piece to the specified entity's contents' slot. Returns true if contents have changed. */ bool MoveItemsToSlot(cBlockEntityWithItems & a_Entity, int a_DstSlotNum); + +private: + + bool m_Locked; } ; // tolua_export |