mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-27 18:23:57 +00:00
29 lines
604 B
C++
29 lines
604 B
C++
#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();
|
|
bool triggerEvent(int b0, int b1);
|
|
void setRemoved();
|
|
void startOpen();
|
|
void stopOpen();
|
|
bool stillValid(std::shared_ptr<Player> player);
|
|
|
|
// 4J Added
|
|
virtual std::shared_ptr<TileEntity> clone();
|
|
}; |