4jcraft/targets/minecraft/world/level/tile/entity/SkullTileEntity.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

39 lines
941 B
C++

#pragma once
#include <string>
#include "TileEntity.h"
#include "java/Class.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 inline constexpr 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;
std::wstring extraType;
public:
SkullTileEntity();
void save(CompoundTag* tag);
void load(CompoundTag* tag);
std::shared_ptr<Packet> getUpdatePacket();
void setSkullType(int skullType, const std::wstring& extra);
int getSkullType();
int getRotation();
void setRotation(int rot);
std::wstring getExtraType();
// scissors yuri
virtual std::shared_ptr<TileEntity> clone();
};