Cuberite
A lightweight, fast and extensible game server for Minecraft
BlockFlowerPot.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "BlockEntity.h"
5 
6 
7 
8 
9 
11  public cClearMetaOnDrop<cBlockEntityHandler>
12 {
14 
15 public:
16 
18  super(a_BlockType)
19  {
20  }
21 
22 
23 
24 
25 
26  virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) override
27  {
28  UNUSED(a_Meta);
29  return 0;
30  }
31 } ;
32 
33 
34 
35 
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
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...
cBlockFlowerPotHandler(BLOCKTYPE a_BlockType)