11 public cClearMetaOnDrop<cYawRotator<cBlockHandler, 0x03, 0x03, 0x00, 0x02, 0x01, true>>
50 return (a_Meta & 0x0b) | ((~a_Meta) & 0x04);
75 ASSERT(!
"Unhandled blocktype in stairs handler!");
92 if (a_BlockMeta & 0x4)
96 else if ((a_BlockMeta & 0x3) == 0)
98 return (a_RelPosition.
y < ((a_RelPosition.
x > 0.5) ? 1.0 : 0.5));
100 else if ((a_BlockMeta & 0x3) == 1)
102 return (a_RelPosition.
y < ((a_RelPosition.
x < 0.5) ? 1.0 : 0.5));
104 else if ((a_BlockMeta & 0x3) == 2)
106 return (a_RelPosition.
y < ((a_RelPosition.
z > 0.5) ? 1.0 : 0.5));
108 else if ((a_BlockMeta & 0x3) == 3)
110 return (a_RelPosition.
y < ((a_RelPosition.
z < 0.5) ? 1.0 : 0.5));
@ E_BLOCK_NETHER_BRICK_STAIRS
@ E_BLOCK_OAK_WOOD_STAIRS
@ E_BLOCK_COBBLESTONE_STAIRS
@ E_BLOCK_DARK_OAK_WOOD_STAIRS
@ E_BLOCK_STONE_BRICK_STAIRS
@ E_BLOCK_BIRCH_WOOD_STAIRS
@ E_BLOCK_JUNGLE_WOOD_STAIRS
@ E_BLOCK_ACACIA_WOOD_STAIRS
@ E_BLOCK_RED_SANDSTONE_STAIRS
@ E_BLOCK_SPRUCE_WOOD_STAIRS
@ E_BLOCK_SANDSTONE_STAIRS
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
unsigned char BLOCKTYPE
The datatype used by blockdata.
virtual NIBBLETYPE MetaMirrorXZ(NIBBLETYPE a_Meta) const override
static bool IsAnyStairType(BLOCKTYPE a_Block)
virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
Mixin to clear the block's meta value when converting to a pickup.
cMetaRotator< Base, BitMask, North, East, South, West, AssertIfNotMatched > Super