Cuberite
A lightweight, fast and extensible game server for Minecraft
BlockDropSpenser.h
Go to the documentation of this file.
1 
2 // BlockDropSpenser.h
3 
4 // Declares the cBlockDropSpenserHandler class representing the BlockHandler for Dropper and Dispenser blocks
5 
6 #pragma once
7 
8 #include "Mixins.h"
9 
10 
11 
12 
13 
15  public cDisplacementYawRotator<cClearMetaOnDrop<cBlockEntityHandler>, 0x07, 0x03, 0x04, 0x02, 0x05, 0x01, 0x00>
16 {
17  using Super = cDisplacementYawRotator<cClearMetaOnDrop<cBlockEntityHandler>, 0x07, 0x03, 0x04, 0x02, 0x05, 0x01, 0x00>;
18 
19 public:
20 
21  using Super::Super;
22 
23 private:
24 
25  virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
26  {
27  UNUSED(a_Meta);
28  return 11;
29  }
30 } ;
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
Mixin for blocks whose meta on placement depends on the relative position of the player to the block ...
Definition: Mixins.h:215
cYawRotator< cClearMetaOnDrop< cBlockEntityHandler >, BitMask, North, East, South, West > Super
Definition: Mixins.h:216