Cuberite
A lightweight, fast and extensible game server for Minecraft
BlockJukebox.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "BlockEntity.h"
5 #include "Mixins.h"
6 
7 
8 
9 
10 
11 class cBlockJukeboxHandler final :
12  public cClearMetaOnDrop<cBlockEntityHandler>
13 {
14 public:
15 
17 
18 private:
19 
20  virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
21  {
22  UNUSED(a_Meta);
23  return 10;
24  }
25 } ;
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
Returns the base colour ID of the block, as will be represented on a map, as per documentation: https...
Definition: BlockJukebox.h:20
Mixin to clear the block's meta value when converting to a pickup.
Definition: Mixins.h:31