4jcraft/Minecraft.World/Blocks/TileEntities/EnchantmentTableTileEntity.h
2026-03-21 15:52:50 -05:00

34 lines
832 B
C++

#pragma once
#include "TileEntity.h"
class Random;
class EnchantmentTableEntity : public TileEntity {
public:
eINSTANCEOF GetType() { return eTYPE_ENCHANTMENTTABLEENTITY; }
static TileEntity* create() { return new EnchantmentTableEntity(); }
public:
int time;
float flip, oFlip, flipT, flipA;
float open, oOpen;
float rot, oRot, tRot;
private:
Random* random;
std::wstring name;
public:
EnchantmentTableEntity();
~EnchantmentTableEntity();
virtual void save(CompoundTag* base);
virtual void load(CompoundTag* base);
virtual void tick();
virtual std::wstring getName();
virtual std::wstring getCustomName();
virtual bool hasCustomName();
virtual void setCustomName(const std::wstring& name);
// 4J Added
virtual std::shared_ptr<TileEntity> clone();
};