summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockCloth.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/BlockCloth.h
parentImprove clang-format config file, remove automatically enforced code style from contrib guide. (diff)
downloadcuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.gz
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.bz2
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.lz
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.xz
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.zst
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.zip
Diffstat (limited to 'src/Blocks/BlockCloth.h')
-rw-r--r--src/Blocks/BlockCloth.h41
1 files changed, 19 insertions, 22 deletions
diff --git a/src/Blocks/BlockCloth.h b/src/Blocks/BlockCloth.h
index 8c0607f36..d40041429 100644
--- a/src/Blocks/BlockCloth.h
+++ b/src/Blocks/BlockCloth.h
@@ -7,35 +7,32 @@
-class cBlockClothHandler final :
- public cBlockHandler
+class cBlockClothHandler final : public cBlockHandler
{
-public:
-
+ public:
using cBlockHandler::cBlockHandler;
-private:
-
+ private:
virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
{
switch (a_Meta)
{
- case E_META_WOOL_WHITE: return 14;
- case E_META_WOOL_ORANGE: return 15;
- case E_META_WOOL_MAGENTA: return 16;
- case E_META_WOOL_LIGHTBLUE: return 17;
- case E_META_WOOL_YELLOW: return 18;
+ case E_META_WOOL_WHITE: return 14;
+ case E_META_WOOL_ORANGE: return 15;
+ case E_META_WOOL_MAGENTA: return 16;
+ case E_META_WOOL_LIGHTBLUE: return 17;
+ case E_META_WOOL_YELLOW: return 18;
case E_META_WOOL_LIGHTGREEN: return 19;
- case E_META_WOOL_PINK: return 20;
- case E_META_WOOL_GRAY: return 21;
- case E_META_WOOL_LIGHTGRAY: return 22;
- case E_META_WOOL_CYAN: return 23;
- case E_META_WOOL_PURPLE: return 24;
- case E_META_WOOL_BLUE: return 25;
- case E_META_WOOL_BROWN: return 26;
- case E_META_WOOL_GREEN: return 27;
- case E_META_WOOL_RED: return 28;
- case E_META_WOOL_BLACK: return 29;
+ case E_META_WOOL_PINK: return 20;
+ case E_META_WOOL_GRAY: return 21;
+ case E_META_WOOL_LIGHTGRAY: return 22;
+ case E_META_WOOL_CYAN: return 23;
+ case E_META_WOOL_PURPLE: return 24;
+ case E_META_WOOL_BLUE: return 25;
+ case E_META_WOOL_BROWN: return 26;
+ case E_META_WOOL_GREEN: return 27;
+ case E_META_WOOL_RED: return 28;
+ case E_META_WOOL_BLACK: return 29;
default:
{
ASSERT(!"Unhandled meta in wool handler!");
@@ -43,4 +40,4 @@ private:
}
}
}
-} ;
+};