Cuberite
A lightweight, fast and extensible game server for Minecraft
BlockSand.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "BlockHandler.h"
5 
6 
7 
8 
9 
10 class cBlockSandHandler final :
11  public cBlockHandler
12 {
13 public:
14 
16 
17 private:
18 
19  virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
20  {
21  UNUSED(a_Meta);
22  return 2;
23  }
24 };
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
Definition: ChunkDef.h:44
Byte ColourID
Definition: Globals.h:162
#define UNUSED
Definition: Globals.h:72
constexpr cBlockHandler(BLOCKTYPE a_BlockType)
Definition: BlockHandler.h:29
virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
Returns the base colour ID of the block, as will be represented on a map, as per documentation: https...
Definition: BlockSand.h:19