Cuberite
A lightweight, fast and extensible game server for Minecraft
BlockChest.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "../BlockArea.h"
5 #include "../Entities/Player.h"
6 #include "Mixins.h"
7 
8 
9 
10 
11 
12 class cBlockChestHandler final :
13  public cYawRotator<cClearMetaOnDrop<cBlockEntityHandler>, 0x07, 0x03, 0x04, 0x02, 0x05>
14 {
15  using Super = cYawRotator<cClearMetaOnDrop<cBlockEntityHandler>, 0x07, 0x03, 0x04, 0x02, 0x05>;
16 
17 public:
18 
19  using Super::Super;
20 
21 
22  virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
23  {
24  UNUSED(a_Meta);
25  return 13;
26  }
27 } ;
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: BlockChest.h:22
Mixin for blocks whose meta on placement depends on the yaw of the player placing the block.
Definition: Mixins.h:162
cMetaRotator< cClearMetaOnDrop< cBlockEntityHandler >, BitMask, North, East, South, West, false > Super
Definition: Mixins.h:163