Cuberite
A lightweight, fast and extensible game server for Minecraft
BlockPumpkin.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "BlockHandler.h"
4 #include "Mixins.h"
5 
6 
7 
8 class cBlockPumpkinHandler final :
9  public cClearMetaOnDrop<cYawRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03>>
10 {
12 
13 public:
14 
15  using Super::Super;
16 
17 private:
18 
19  virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
20  {
21  UNUSED(a_Meta);
22  return 15;
23  }
24 } ;
25 
26 
27 
28 
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
Definition: BlockPumpkin.h:19
Mixin to clear the block's meta value when converting to a pickup.
Definition: Mixins.h:31
cMetaRotator< cBlockHandler, BitMask, North, East, South, West, false > Super
Definition: Mixins.h:163