Mixin for blocks whose meta on placement depends on the yaw of the player placing the block.
More...
template<class Base, NIBBLETYPE BitMask = 0x07, NIBBLETYPE North = 0x02, NIBBLETYPE East = 0x05, NIBBLETYPE South = 0x03, NIBBLETYPE West = 0x04, bool AssertIfNotMatched = false>
class cYawRotator< Base, BitMask, North, East, South, West, AssertIfNotMatched >
Mixin for blocks whose meta on placement depends on the yaw of the player placing the block.
BitMask selects the direction bits from the block's meta values.
Definition at line 160 of file Mixins.h.
template<class Base , NIBBLETYPE BitMask = 0x07, NIBBLETYPE North = 0x02, NIBBLETYPE East = 0x05, NIBBLETYPE South = 0x03, NIBBLETYPE West = 0x04, bool AssertIfNotMatched = false>
static NIBBLETYPE cYawRotator< Base, BitMask, North, East, South, West, AssertIfNotMatched >::YawToMetaData |
( |
double |
a_Rotation | ) |
|
|
inlinestatic |
Converts the rotation value as returned by cPlayer::GetYaw() to the appropriate metadata value for a block placed by a player facing that way.
Definition at line 172 of file Mixins.h.