the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 36 lines 793 B view raw
1#pragma once 2 3#include "TileEntity.h" 4 5class SkullTileEntity : public TileEntity 6{ 7public: 8 eINSTANCEOF GetType() { return eTYPE_SKULLTILEENTITY; } 9 static TileEntity *create() { return new SkullTileEntity(); } 10public: 11 static const int TYPE_SKELETON = 0; 12 static const int TYPE_WITHER = 1; 13 static const int TYPE_ZOMBIE = 2; 14 static const int TYPE_CHAR = 3; 15 static const int TYPE_CREEPER = 4; 16 17private: 18 int skullType; 19 int rotation; 20 wstring extraType; 21 22public: 23 SkullTileEntity(); 24 25 void save(CompoundTag *tag); 26 void load(CompoundTag *tag); 27 shared_ptr<Packet> getUpdatePacket(); 28 void setSkullType(int skullType, const wstring &extra); 29 int getSkullType(); 30 int getRotation(); 31 void setRotation(int rot); 32 wstring getExtraType(); 33 34 // 4J Added 35 virtual shared_ptr<TileEntity> clone(); 36};