diff options
author | Alexander Harkness <me@bearbin.net> | 2020-04-09 23:47:47 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2020-04-10 15:07:16 +0200 |
commit | 9bb001f17be8b35331b64b5fcf40e0712cf95567 (patch) | |
tree | 9a10ec38104bd1dba0032b085be603446811fa48 /src/Blocks/Mixins.h | |
parent | Fix comment text (diff) | |
download | cuberite-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/Blocks/Mixins.h')
-rw-r--r-- | src/Blocks/Mixins.h | 6 |
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) |