summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Blocks/Mixins.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Blocks/Mixins.h b/src/Blocks/Mixins.h
index 25f2372a0..73e30a71a 100644
--- a/src/Blocks/Mixins.h
+++ b/src/Blocks/Mixins.h
@@ -201,7 +201,8 @@ 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)
{
a_Rotation += 90 + 45; // So its not aligned with axis
@@ -279,7 +280,8 @@ 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)
{
if (a_Pitch >= 50)