Initial commit

This commit is contained in:
daoge_cmd
2026-03-01 12:16:08 +08:00
parent def8cb4153
commit b691c43c44
19437 changed files with 4363922 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
#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;
private:
int skullType;
int rotation;
wstring extraType;
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();
// 4J Added
virtual shared_ptr<TileEntity> clone();
};