the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 34 lines 749 B view raw
1#pragma once 2#include "TileEntity.h" 3class Random; 4 5class EnchantmentTableEntity : public TileEntity 6{ 7public: 8 eINSTANCEOF GetType() { return eTYPE_ENCHANTMENTTABLEENTITY; } 9 static TileEntity *create() { return new EnchantmentTableEntity(); } 10 11public: 12 int time; 13 float flip, oFlip, flipT, flipA; 14 float open, oOpen; 15 float rot, oRot, tRot; 16private: 17 Random *random; 18 wstring name; 19 20public: 21 EnchantmentTableEntity(); 22 ~EnchantmentTableEntity(); 23 24 virtual void save(CompoundTag *base); 25 virtual void load(CompoundTag *base); 26 virtual void tick(); 27 virtual wstring getName(); 28 virtual wstring getCustomName(); 29 virtual bool hasCustomName(); 30 virtual void setCustomName(const wstring &name); 31 32 // 4J Added 33 virtual shared_ptr<TileEntity> clone(); 34};