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 };
BlockHandler.h
cBlockHandler
Definition: BlockHandler.h:25
ColourID
Byte ColourID
Definition: Globals.h:159
NIBBLETYPE
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
Definition: ChunkDef.h:44
UNUSED
#define UNUSED
Definition: Globals.h:72
cBlockSandHandler
Definition: BlockSand.h:10
cBlockSandHandler::GetMapBaseColourID
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
cBlockHandler::cBlockHandler
constexpr cBlockHandler(BLOCKTYPE a_BlockType)
Definition: BlockHandler.h:29