Cuberite
A lightweight, fast and extensible game server for Minecraft
BlockHopper.h
Go to the documentation of this file.
1 
2 // BlockHopper.h
3 
4 // Declares the cBlockHopperHandler class representing the handler for the Hopper block
5 
6 #include "Mixins.h"
7 
8 
9 
10 class cBlockHopperHandler final :
11  public cClearMetaOnDrop<cMetaRotator<cBlockEntityHandler, 0x7, E_META_HOPPER_FACING_ZP, E_META_HOPPER_FACING_XM, E_META_HOPPER_FACING_ZM, E_META_HOPPER_FACING_XP>>
12 {
14 
15 public:
16 
17  using Super::Super;
18 
19 private:
20 
21  virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
22  {
23  UNUSED(a_Meta);
24  return 11;
25  }
26 } ;
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: BlockHopper.h:21
Mixin to clear the block's meta value when converting to a pickup.
Definition: Mixins.h:31