31 int a_BlockX,
int a_BlockY,
int a_BlockZ,
eBlockFace a_BlockFace,
32 int a_CursorX,
int a_CursorY,
int a_CursorZ,
80 ASSERT(!
"Unhandled block face!");
Handler for blocks that have 3 orientations (hay bale, log), specified by the upper 2 bits in meta...
unsigned char BLOCKTYPE
The datatype used by blockdata.
const cItem & GetEquippedItem(void) const
cBlockHandler(BLOCKTYPE a_BlockType)
virtual cItems ConvertToPickups(NIBBLETYPE a_BlockMeta, cBlockEntity *a_BlockEntity, const cEntity *a_Digger, const cItem *a_Tool) override
Returns the pickups that would result if the block was mined by a_Digger using a_Tool.
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
cBlockSidewaysHandler(BLOCKTYPE a_BlockType)
eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc...
static NIBBLETYPE BlockFaceToMetaData(eBlockFace a_BlockFace, NIBBLETYPE a_Meta)
#define UNREACHABLE(x)
Use to mark code that should be impossible to reach.
This class bridges a vector of cItem for safe access via Lua.
virtual bool GetPlacementBlockTypeMeta(cChunkInterface &a_ChunkInterface, cPlayer &a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ, BLOCKTYPE &a_BlockType, NIBBLETYPE &a_BlockMeta) override
Called before a block is placed into a world.