5 #include "../UI/CraftingWindow.h" 6 #include "../Entities/Player.h" virtual bool OnUse(cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface, cPlayer &a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ) override
Called if the user right clicks the block and the block is useable returns true if the use was succes...
unsigned char BLOCKTYPE
The datatype used by blockdata.
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
virtual bool IsUseable(void) override
Checks if the block can be placed at this point.
virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) override
Returns the base colour ID of the block, as will be represented on a map, as per documentation: https...
eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc...
cBlockWorkbenchHandler(BLOCKTYPE a_BlockType)
void OpenWindow(cWindow &a_Window)
Opens the specified window; closes the current one first using CloseWindow()