17 public cMetaRotator<cBlockHandler, 0x7, 0x4, 0x1, 0x3, 0x2>
110 ASSERT(!
"Unhandled torch metadata");
@ E_META_WOODEN_SLAB_UPSIDE_DOWN
@ E_BLOCK_STAIRS_UPSIDE_DOWN
@ E_BLOCK_REDSTONE_TORCH_ON
@ E_BLOCK_END_PORTAL_FRAME
@ E_BLOCK_COBBLESTONE_WALL
@ E_BLOCK_NETHER_BRICK_FENCE
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
unsigned char BLOCKTYPE
The datatype used by blockdata.
void AddFaceDirection(int &a_BlockX, int &a_BlockY, int &a_BlockZ, eBlockFace a_BlockFace, bool a_bInverse)
Modifies the specified coords so that they point to the block adjacent to the one specified through i...
eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc.
static bool FullyOccupiesVoxel(BLOCKTYPE Block)
Does this block fully occupy its voxel - is it a 'full' block?
static bool IsAnySlabType(BLOCKTYPE a_BlockType)
Returns true if the specified blocktype is one of the slabs handled by this handler.
static bool IsAnyStairType(BLOCKTYPE a_Block)
cMetaRotator< cBlockHandler, 0x7, 0x4, 0x1, 0x3, 0x2 > Super
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...
static eBlockFace MetaDataToBlockFace(NIBBLETYPE a_MetaData)
Converts the torch block's meta to the block face of the neighbor to which the torch is attached.
virtual bool CanBeAt(const cChunk &a_Chunk, const Vector3i a_Position, const NIBBLETYPE a_Meta) const override
Checks if the block can stay at the specified relative coords in the chunk.
static bool CanBePlacedOn(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, eBlockFace a_BlockFace)
Returns true if the torch can be placed on the specified block's face.
~cBlockTorchBaseHandler()=default
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...
Mixin to clear the block's meta value when converting to a pickup.
Mixin for rotations and reflections following the standard pattern of "apply mask,...
bool UnboundedRelGetBlock(Vector3i a_RelCoords, BLOCKTYPE &a_BlockType, NIBBLETYPE &a_BlockMeta) const
Same as GetBlock(), but relative coords needn't be in this chunk (uses m_Neighbor-s or m_ChunkMap in ...
This class bridges a vector of cItem for safe access via Lua.