summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemStairs.h
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2024-11-02 22:27:47 +0100
committerAlexander Harkness <me@bearbin.net>2024-11-02 22:27:47 +0100
commitcb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a (patch)
treef647b20e1823f1846af88e832cf82a4a02e96e69 /src/Items/ItemStairs.h
parentImprove clang-format config file, remove automatically enforced code style from contrib guide. (diff)
downloadcuberite-clang-format-codebase.tar
cuberite-clang-format-codebase.tar.gz
cuberite-clang-format-codebase.tar.bz2
cuberite-clang-format-codebase.tar.lz
cuberite-clang-format-codebase.tar.xz
cuberite-clang-format-codebase.tar.zst
cuberite-clang-format-codebase.zip
Diffstat (limited to 'src/Items/ItemStairs.h')
-rw-r--r--src/Items/ItemStairs.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/Items/ItemStairs.h b/src/Items/ItemStairs.h
index 8a937ae56..745199cb9 100644
--- a/src/Items/ItemStairs.h
+++ b/src/Items/ItemStairs.h
@@ -8,25 +8,30 @@
-class cItemStairsHandler final :
- public cItemHandler
+class cItemStairsHandler final : public cItemHandler
{
using Super = cItemHandler;
-public:
-
+ public:
using Super::Super;
-private:
-
- virtual bool CommitPlacement(cPlayer & a_Player, const cItem & a_HeldItem, const Vector3i a_PlacePosition, const eBlockFace a_ClickedBlockFace, const Vector3i a_CursorPosition) const override
+ private:
+ virtual bool CommitPlacement(
+ cPlayer & a_Player,
+ const cItem & a_HeldItem,
+ const Vector3i a_PlacePosition,
+ const eBlockFace a_ClickedBlockFace,
+ const Vector3i a_CursorPosition
+ ) const override
{
NIBBLETYPE Meta = cBlockStairsHandler::YawToMetaData(a_Player.GetYaw());
switch (a_ClickedBlockFace)
{
- case BLOCK_FACE_TOP: break;
- case BLOCK_FACE_BOTTOM: Meta |= 0x4; break; // When placing onto a bottom face, always place an upside-down stairs block.
+ case BLOCK_FACE_TOP: break;
+ case BLOCK_FACE_BOTTOM:
+ Meta |= 0x4;
+ break; // When placing onto a bottom face, always place an upside-down stairs block.
case BLOCK_FACE_EAST:
case BLOCK_FACE_NORTH:
case BLOCK_FACE_SOUTH: