Files
minecraft-pe-0.6.1/src/world/level/tile/TrapDoorTile.h
2026-03-02 22:04:18 +03:00

36 lines
1.4 KiB
C++
Executable File

#ifndef NET_MINECRAFT_WORLD_LEVEL_TILE__TrapDoorTile_H__
#define NET_MINECRAFT_WORLD_LEVEL_TILE__TrapDoorTile_H__
#include "Tile.h"
class TrapDoorTile : public Tile {
typedef Tile super;
public:
TrapDoorTile(int id, const Material* material);
bool blocksLight();
bool isSolidRender();
bool isCubeShaped();
int getRenderLayer();
//@Override
// public boolean isPathfindable(LevelSource level, int x, int y, int z) {
// return !isOpen(level.getData(x, y, z));
//}
int getRenderShape();
AABB getTileAABB(Level* level, int x, int y, int z);
AABB* getAABB(Level* level, int x, int y, int z);
void updateShape(LevelSource* level, int x, int y, int z);
void updateDefaultShape();
void setShape(int data);
void attack(Level* level, int x, int y, int z, Player* player);
bool use(Level* level, int x, int y, int z, Player* player);
void setOpen(Level* level, int x, int y, int z, bool shouldOpen);
void neighborChanged(Level* level, int x, int y, int z, int type);
HitResult clip(Level* level, int xt, int yt, int zt, const Vec3& a, const Vec3& b);
int getDir(int dir);
int getPlacedOnFaceDataValue(Level* level, int x, int y, int z, int face, float clickX, float clickY, float clickZ, int itemValue);
bool mayPlace(Level* level, int x, int y, int z, unsigned char face);
static bool isOpen(int data);
static bool attachesTo(int id);
};
#endif /* NET_MINECRAFT_WORLD_LEVEL_TILE__TrapDoorTile_H__ */