6 #include "../Entities/Player.h"
7 #include "../UI/AnvilWindow.h"
14 public cYawRotator<cBlockHandler, 0x03, 0x03, 0x00, 0x01, 0x02>
26 return cItem(m_BlockType, 1, a_BlockMeta >> 2);
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.
virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
virtual bool IsUseable() const override
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
virtual cItems ConvertToPickups(const NIBBLETYPE a_BlockMeta, const cItem *const a_Tool) const override
Mixin for blocks whose meta on placement depends on the yaw of the player placing the block.
cMetaRotator< cBlockHandler, BitMask, North, East, South, West, false > Super
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.