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 
11  public cBlockHandler
12 {
13 public:
15  : cBlockHandler(a_BlockType)
16  {
17  }
18 
19  virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) override
20  {
21  UNUSED(a_Meta);
22  return 2;
23  }
24 };
25 
26 
27 
28 
unsigned char BLOCKTYPE
The datatype used by blockdata.
Definition: ChunkDef.h:42
virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) override
Returns the base colour ID of the block, as will be represented on a map, as per documentation: https...
Definition: BlockSand.h:19
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
Definition: ChunkDef.h:45
#define UNUSED
Definition: Globals.h:152
cBlockSandHandler(BLOCKTYPE a_BlockType)
Definition: BlockSand.h:14
Byte ColourID
Definition: Globals.h:118