summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockPlanks.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/Blocks/BlockPlanks.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/Blocks/BlockPlanks.h')
-rw-r--r--src/Blocks/BlockPlanks.h25
1 files changed, 9 insertions, 16 deletions
diff --git a/src/Blocks/BlockPlanks.h b/src/Blocks/BlockPlanks.h
index d6e79b3c0..c0e099b33 100644
--- a/src/Blocks/BlockPlanks.h
+++ b/src/Blocks/BlockPlanks.h
@@ -7,27 +7,24 @@
-class cBlockPlanksHandler final :
- public cBlockHandler
+class cBlockPlanksHandler final : public cBlockHandler
{
using Super = cBlockHandler;
-public:
-
+ public:
using Super::Super;
-private:
-
+ private:
virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
{
switch (a_Meta)
{
- case E_META_PLANKS_BIRCH: return 2;
- case E_META_PLANKS_JUNGLE: return 10;
- case E_META_PLANKS_OAK: return 13;
- case E_META_PLANKS_ACACIA: return 15;
+ case E_META_PLANKS_BIRCH: return 2;
+ case E_META_PLANKS_JUNGLE: return 10;
+ case E_META_PLANKS_OAK: return 13;
+ case E_META_PLANKS_ACACIA: return 15;
case E_META_PLANKS_DARK_OAK: return 26;
- case E_META_PLANKS_SPRUCE: return 34;
+ case E_META_PLANKS_SPRUCE: return 34;
default:
{
ASSERT(!"Unhandled meta in planks handler!");
@@ -35,8 +32,4 @@ private:
}
}
}
-} ;
-
-
-
-
+};