mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-22 18:36:06 +01:00
TU46 Test content, added missing commits by amending commit and cherry-picking to new branch, ready for iggy guis and tu46 bug fixes
41 lines
921 B
C++
41 lines
921 B
C++
#pragma once
|
|
|
|
#include "TileEntity.h"
|
|
|
|
class SkullTileEntity : public TileEntity
|
|
{
|
|
public:
|
|
eINSTANCEOF GetType() { return eTYPE_SKULLTILEENTITY; }
|
|
static TileEntity *create() { return new SkullTileEntity(); }
|
|
public:
|
|
static const int TYPE_SKELETON = 0;
|
|
static const int TYPE_WITHER = 1;
|
|
static const int TYPE_ZOMBIE = 2;
|
|
static const int TYPE_CHAR = 3;
|
|
static const int TYPE_CREEPER = 4;
|
|
static const int TYPE_DRAGON = 5;
|
|
|
|
private:
|
|
int skullType;
|
|
int rotation;
|
|
wstring extraType;
|
|
int mouthAnimation;
|
|
bool powered;
|
|
|
|
public:
|
|
SkullTileEntity();
|
|
|
|
void save(CompoundTag *tag);
|
|
void load(CompoundTag *tag);
|
|
shared_ptr<Packet> getUpdatePacket();
|
|
void setSkullType(int skullType, const wstring &extra);
|
|
int getSkullType();
|
|
int getRotation();
|
|
void setRotation(int rot);
|
|
wstring getExtraType();
|
|
virtual void tick();
|
|
float getMouthAnimation(float a);
|
|
|
|
// 4J Added
|
|
virtual shared_ptr<TileEntity> clone();
|
|
}; |