summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/EnchantingTableEntity.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/BlockEntities/EnchantingTableEntity.h')
-rw-r--r--src/BlockEntities/EnchantingTableEntity.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/BlockEntities/EnchantingTableEntity.h b/src/BlockEntities/EnchantingTableEntity.h
new file mode 100644
index 000000000..f10fa3c87
--- /dev/null
+++ b/src/BlockEntities/EnchantingTableEntity.h
@@ -0,0 +1,32 @@
+
+#pragma once
+
+#include "BlockEntity.h"
+
+
+
+
+
+class cEnchantingTableEntity :
+ public cBlockEntity
+{
+ using Super = cBlockEntity;
+
+public:
+
+ BLOCKENTITY_PROTODEF(cEnchantingTableEntity)
+
+ cEnchantingTableEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld * a_World, AString a_CustomName = "");
+
+ const AString & GetCustomName() const { return m_CustomName; }
+ void SetCustomName(const AString & a_CustomName) { m_CustomName = a_CustomName; }
+
+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;
+
+ AString m_CustomName;
+};