From f8de67aace4e65ff4c34a1f46f6d8b258b6839aa Mon Sep 17 00:00:00 2001 From: 12xx12 <12xx12100@gmail.com> Date: Thu, 17 Sep 2020 16:16:20 +0200 Subject: Added end portal and enchanting table block entities --- src/BlockEntities/EndPortalEntity.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/BlockEntities/EndPortalEntity.h (limited to 'src/BlockEntities/EndPortalEntity.h') diff --git a/src/BlockEntities/EndPortalEntity.h b/src/BlockEntities/EndPortalEntity.h new file mode 100644 index 000000000..fe5ed4322 --- /dev/null +++ b/src/BlockEntities/EndPortalEntity.h @@ -0,0 +1,27 @@ + +#pragma once + +#include "BlockEntity.h" + + + + + +class cEndPortalEntity : + public cBlockEntity +{ + using Super = cBlockEntity; + +public: + + BLOCKENTITY_PROTODEF(cEndPortalEntity) + + cEndPortalEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld * a_World); + +private: + + // cBlockEntity overrides: + virtual void CopyFrom(const cBlockEntity & a_Src) override; + virtual bool UsedBy(cPlayer * a_Player) override; + virtual void SendTo(cClientHandle & a_Client) override; +}; -- cgit v1.2.3