12 public cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x07, 0x02, 0x05, 0x03, 0x04> >
29 int a_BlockX,
int a_BlockY,
int a_BlockZ,
eBlockFace a_BlockFace,
30 int a_CursorX,
int a_CursorY,
int a_CursorZ,
cBlockLadderHandler(BLOCKTYPE a_BlockType)
virtual bool CanBeAt(cChunkInterface &a_ChunkInterface, int a_RelX, int a_RelY, int a_RelZ, const cChunk &a_Chunk) override
Checks if the block can stay at the specified relative coords in the chunk.
static bool IsSolid(BLOCKTYPE a_Type)
unsigned char BLOCKTYPE
The datatype used by blockdata.
static eBlockFace MetaDataToDirection(NIBBLETYPE a_MetaData)
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
static eBlockFace FindSuitableBlockFace(cChunkInterface &a_ChunkInterface, int a_BlockX, int a_BlockY, int a_BlockZ)
Finds a suitable Direction for the Ladder.
void AddFaceDirection(int &a_BlockX, int &a_BlockY, int &a_BlockZ, eBlockFace a_BlockFace, bool a_bInverse=false)
NIBBLETYPE GetMeta(int a_RelX, int a_RelY, int a_RelZ) const
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...
static NIBBLETYPE DirectionToMetaData(eBlockFace a_Direction)
eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc...
BLOCKTYPE GetBlock(Vector3i a_Pos)
static bool LadderCanBePlacedAt(cChunkInterface &a_ChunkInterface, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace)
Mixin to clear the block's meta value when converting to a pickup.
virtual bool GetPlacementBlockTypeMeta(cChunkInterface &a_ChunkInterface, 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 before a block is placed into a world.
#define UNREACHABLE(x)
Use to mark code that should be impossible to reach.