forked from Kolyah35/minecraft-pe-0.6.1
52 lines
1.2 KiB
C++
Executable File
52 lines
1.2 KiB
C++
Executable File
#ifndef NET_MINECRAFT_WORLD_LEVEL_TILE__ChestTile_H__
|
|
#define NET_MINECRAFT_WORLD_LEVEL_TILE__ChestTile_H__
|
|
|
|
#include "EntityTile.h"
|
|
class Level;
|
|
class LevelSource;
|
|
class Mob;
|
|
|
|
#include "../../../util/Random.h"
|
|
|
|
//package net.minecraft.world.level->tile;
|
|
|
|
class ChestTile: public EntityTile
|
|
{
|
|
typedef EntityTile super;
|
|
public:
|
|
static const int EVENT_SET_OPEN_COUNT = 1;
|
|
|
|
ChestTile(int id);
|
|
|
|
bool isSolidRender();
|
|
|
|
/*@Override*/
|
|
bool isCubeShaped();
|
|
|
|
int getRenderShape();
|
|
|
|
bool mayPlace(Level* level, int x, int y, int z, unsigned char face);
|
|
void setPlacedBy(Level* level, int x, int y, int z, Mob* by);
|
|
|
|
void onPlace(Level* level, int x, int y, int z);
|
|
void onRemove(Level* level, int x, int y, int z);
|
|
|
|
void recalcLockDir(Level* level, int x, int y, int z);
|
|
|
|
int getTexture(LevelSource* level, int x, int y, int z, int face);
|
|
int getTexture(int face);
|
|
|
|
void neighborChanged(Level* level, int x, int y, int z, int type);
|
|
|
|
bool use(Level* level, int x, int y, int z, Player* player);
|
|
|
|
TileEntity* newTileEntity();
|
|
|
|
private:
|
|
bool isFullChest(Level* level, int x, int y, int z);
|
|
|
|
Random random;
|
|
};
|
|
|
|
#endif /*NET_MINECRAFT_WORLD_LEVEL_TILE__ChestTile_H__*/
|