blob: 18ae5b75ee3ed2563a4e8e7a566bf840298b58db (
plain)
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
32
33
34
|
#pragma once
#include "TileEntity.h"
class Random;
class EnchantmentTableEntity : public TileEntity
{
public:
eINSTANCEOF GetType() { return eTYPE_ENCHANTMENTTABLEENTITY; }
static TileEntity *create() { return new EnchantmentTableEntity(); }
public:
int time;
float flip, oFlip, flipT, flipA;
float open, oOpen;
float rot, oRot, tRot;
private:
Random *random;
wstring name;
public:
EnchantmentTableEntity();
~EnchantmentTableEntity();
virtual void save(CompoundTag *base);
virtual void load(CompoundTag *base);
virtual void tick();
virtual wstring getName();
virtual wstring getCustomName();
virtual bool hasCustomName();
virtual void setCustomName(const wstring &name);
// 4J Added
virtual shared_ptr<TileEntity> clone();
};
|