23 int a_BlockX,
int a_BlockY,
int a_BlockZ,
eBlockFace a_BlockFace,
24 int a_CursorX,
int a_CursorY,
int a_CursorZ,
30 a_BlockX, a_BlockY, a_BlockZ, a_BlockFace,
31 a_CursorX, a_CursorY, a_CursorZ,
32 a_BlockType, a_BlockMeta
34 a_BlockMeta = a_BlockMeta | 0x4;
unsigned char BLOCKTYPE
The datatype used by blockdata.
cItemLeavesHandler(int a_ItemType)
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
virtual bool GetPlacementBlockTypeMeta(cWorld *a_World, 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)
Called when the player right-clicks with this item and IsPlaceable() == true, and OnPlayerPlace() is ...
eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc...
virtual bool GetPlacementBlockTypeMeta(cWorld *a_World, 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 when the player right-clicks with this item and IsPlaceable() == true, and OnPlayerPlace() is ...