diff options
Diffstat (limited to 'src/Blocks/BlockEntity.h')
-rw-r--r-- | src/Blocks/BlockEntity.h | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/src/Blocks/BlockEntity.h b/src/Blocks/BlockEntity.h index c10f5d769..9f1ebe751 100644 --- a/src/Blocks/BlockEntity.h +++ b/src/Blocks/BlockEntity.h @@ -11,21 +11,17 @@ /** Wrapper for blocks that have a cBlockEntity descendant attached to them and can be "used" by the player. Forwards the "use" event to the block entity. */ -class cBlockEntityHandler : - public cBlockHandler +class cBlockEntityHandler : public cBlockHandler { using Super = cBlockHandler; -public: - + public: using Super::Super; -protected: - + protected: ~cBlockEntityHandler() = default; -private: - + private: virtual bool OnUse( cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, @@ -38,20 +34,15 @@ private: return a_ChunkInterface.UseBlockEntity(&a_Player, a_BlockPos.x, a_BlockPos.y, a_BlockPos.z); } - virtual bool IsUseable() const override - { - return true; - } + virtual bool IsUseable() const override { return true; } }; -class cDefaultBlockEntityHandler final : - public cBlockEntityHandler +class cDefaultBlockEntityHandler final : public cBlockEntityHandler { -public: - + public: using cBlockEntityHandler::cBlockEntityHandler; }; |