summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2020-04-09 23:47:47 +0200
committerAlexander Harkness <me@bearbin.net>2020-04-10 15:07:16 +0200
commit9bb001f17be8b35331b64b5fcf40e0712cf95567 (patch)
tree9a10ec38104bd1dba0032b085be603446811fa48 /src
parentFix comment text (diff)
downloadcuberite-9bb001f17be8b35331b64b5fcf40e0712cf95567.tar
cuberite-9bb001f17be8b35331b64b5fcf40e0712cf95567.tar.gz
cuberite-9bb001f17be8b35331b64b5fcf40e0712cf95567.tar.bz2
cuberite-9bb001f17be8b35331b64b5fcf40e0712cf95567.tar.lz
cuberite-9bb001f17be8b35331b64b5fcf40e0712cf95567.tar.xz
cuberite-9bb001f17be8b35331b64b5fcf40e0712cf95567.tar.zst
cuberite-9bb001f17be8b35331b64b5fcf40e0712cf95567.zip
Diffstat (limited to 'src')
-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)