summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/EnchantingTableEntity.h
blob: 1f0aafdf32b445cfe0a48097b1615b207c012d9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

#pragma once

#include "BlockEntity.h"





class cEnchantingTableEntity :
	public cBlockEntity
{
	using Super = cBlockEntity;

public:

	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 cItems ConvertToPickups() const override;
	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;
};