25 int a_BlockX,
int a_BlockY,
int a_BlockZ,
eBlockFace a_BlockFace,
26 int a_CursorX,
int a_CursorY,
int a_CursorZ,
39 if (!a_World->
GetBlockTypeMeta(a_BlockX, a_BlockY - 1, a_BlockZ, BlockType, BlockMeta))
69 return ((a_BlockMeta & 0x08) != 0);
virtual bool IsPlaceable(void) override
Blocks simply get placed.
unsigned char BLOCKTYPE
The datatype used by blockdata.
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 ...
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
bool GetBlockTypeMeta(Vector3i a_BlockPos, BLOCKTYPE &a_BlockType, NIBBLETYPE &a_BlockMeta)
Retrieves the block type and meta at the specified coords.
static bool IsBlockTypeUnderSuitable(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)
Returns true if the specified block type / meta is suitable to have redstone dust on top of it...
cItemRedstoneDustHandler(int a_ItemType)
static bool FullyOccupiesVoxel(BLOCKTYPE a_Type)
eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc...