Cuberite
A lightweight, fast and extensible game server for Minecraft
BlockSlime.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "BlockHandler.h"
4 
5 
6 
7 
8 
10  public cClearMetaOnDrop<cBlockHandler>
11 {
13 
14 public:
15 
17  super(a_BlockType)
18  {
19  }
20 
21 
22 
23 
24 
25  virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) override
26  {
27  UNUSED(a_Meta);
28  return 1;
29  }
30 };
31 
32 
33 
34 
unsigned char BLOCKTYPE
The datatype used by blockdata.
Definition: ChunkDef.h:42
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
Definition: ChunkDef.h:45
#define UNUSED
Definition: Globals.h:152
Byte ColourID
Definition: Globals.h:118
Mixin to clear the block&#39;s meta value when converting to a pickup.
Definition: Mixins.h:55
cBlockSlimeHandler(BLOCKTYPE a_BlockType)
Definition: BlockSlime.h:16
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: BlockSlime.h:25