6 #include "../UI/EnchantingWindow.h"
7 #include "../BlockEntities/EnchantingTableEntity.h"
8 #include "../Entities/Player.h"
41 if (!CustomName.empty())
43 WindowName = CustomName;
@ E_BLOCK_ENCHANTMENT_TABLE
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc.
BLOCKTYPE GetBlockType() const
virtual cItems ConvertToPickups(const NIBBLETYPE a_BlockMeta, const cItem *const a_Tool) const override
Returns the pickups that would result if the block was mined by a_Digger using a_Tool.
virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
Returns the base colour ID of the block, as will be represented on a map, as per documentation: https...
virtual bool IsUseable(void) const override
Called to check whether this block supports a rclk action.
virtual bool OnUse(cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface, cPlayer &a_Player, const Vector3i a_BlockPos, eBlockFace a_BlockFace, const Vector3i a_CursorPos) const override
Called when the user right clicks the block and the block is useable.
constexpr cBlockHandler(BLOCKTYPE a_BlockType)
virtual bool DoWithBlockEntityAt(Vector3i a_Position, cBlockEntityCallback a_Callback)=0
Calls the callback for the block entity at the specified coords; returns false if there's no block en...
void OpenWindow(cWindow &a_Window)
Opens the specified window; closes the current one first using CloseWindow()
This class bridges a vector of cItem for safe access via Lua.