Files
MinecraftConsoles/Minecraft.World/EnderChestTileEntity.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

30 lines
562 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();
void 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();
};