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 
9 class cBlockSlimeHandler final :
10  public cClearMetaOnDrop<cBlockHandler>
11 {
12 public:
13 
15 
16 private:
17 
18  virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
19  {
20  UNUSED(a_Meta);
21  return 1;
22  }
23 };
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
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: BlockSlime.h:18
Mixin to clear the block's meta value when converting to a pickup.
Definition: Mixins.h:31