5 #include "../UI/EnchantingWindow.h" 6 #include "../Entities/Player.h"
unsigned char BLOCKTYPE
The datatype used by blockdata.
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...
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
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...
virtual bool IsUseable(void) override
Checks if the block can be placed at this point.
eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc...
cBlockEnchantmentTableHandler(BLOCKTYPE a_BlockType)
void OpenWindow(cWindow &a_Window)
Opens the specified window; closes the current one first using CloseWindow()