2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "TileEntity.h"
|
|
|
|
|
|
|
|
|
|
class EnderChestTileEntity : public TileEntity
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
eINSTANCEOF GetType() { return eTYPE_ENDERCHESTTILEENTITY; }
|
|
|
|
|
static TileEntity *create() { return new EnderChestTileEntity(); }
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
float openness, oOpenness;
|
|
|
|
|
int openCount;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
int tickInterval;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
EnderChestTileEntity();
|
|
|
|
|
|
|
|
|
|
void tick();
|
2026-03-03 03:04:10 +08:00
|
|
|
bool triggerEvent(int b0, int b1);
|
2026-03-01 12:16:08 +08:00
|
|
|
void setRemoved();
|
|
|
|
|
void startOpen();
|
|
|
|
|
void stopOpen();
|
2026-03-02 17:37:16 +07:00
|
|
|
bool stillValid(shared_ptr<Player> player);
|
2026-03-01 12:16:08 +08:00
|
|
|
|
|
|
|
|
// 4J Added
|
2026-03-02 17:37:16 +07:00
|
|
|
virtual shared_ptr<TileEntity> clone();
|
2026-03-01 12:16:08 +08:00
|
|
|
};
|