diff --git a/src/Blocks/Mixins.h b/src/Blocks/Mixins.h index 73e30a71a..7c3e16c42 100644 --- a/src/Blocks/Mixins.h +++ b/src/Blocks/Mixins.h @@ -167,6 +167,9 @@ public: }; + + + /** 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. */ template @@ -201,6 +204,7 @@ public: + /** Converts the rotation value as returned by cPlayer::GetYaw() to the appropriate metadata value for a block placed by a player facing that way */ static NIBBLETYPE YawToMetaData(double a_Rotation) @@ -230,6 +234,10 @@ public: } }; + + + + /** Mixin for blocks whose meta on placement depends on the pitch and yaw of the player placing the block. BitMask selects the direction bits from the block's meta values. */ template @@ -280,6 +288,7 @@ public: + /** Converts the rotation and pitch values as returned by cPlayer::GetYaw() and cPlayer::GetPitch() respectively to the appropriate metadata value for a block placed by a player facing that way */ static NIBBLETYPE PitchYawToMetaData(double a_Rotation, double a_Pitch)