Files
MinecraftConsoles/Minecraft.World/SkullTileEntity.h
void_17 7074f35e4b shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
2026-03-02 15:58:20 +07:00

36 lines
803 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;
private:
int skullType;
int rotation;
wstring extraType;
public:
SkullTileEntity();
void save(CompoundTag *tag);
void load(CompoundTag *tag);
std::shared_ptr<Packet> getUpdatePacket();
void setSkullType(int skullType, const wstring &extra);
int getSkullType();
int getRotation();
void setRotation(int rot);
wstring getExtraType();
// 4J Added
virtual std::shared_ptr<TileEntity> clone();
};