Cuberite
A lightweight, fast and extensible game server for Minecraft
BlockFurnace.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "Mixins.h"
5 
6 
7 
8 
9 class cBlockFurnaceHandler final :
10  public cYawRotator<cBlockEntityHandler, 0x07, 0x03, 0x04, 0x02, 0x05>
11 {
13 
14 public:
15 
16  using Super::Super;
17 
18 private:
19 
20  virtual cItems ConvertToPickups(const NIBBLETYPE a_BlockMeta, const cItem * const a_Tool) const override
21  {
22  return cItem(E_BLOCK_FURNACE); // We can't drop a lit furnace
23  }
24 
25 
26 
27 
28 
29  virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
30  {
31  UNUSED(a_Meta);
32  return 11;
33  }
34 } ;
35 
36 
37 
38 
@ E_BLOCK_FURNACE
Definition: BlockType.h:73
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: BlockFurnace.h:29
virtual cItems ConvertToPickups(const NIBBLETYPE a_BlockMeta, const cItem *const a_Tool) const override
Definition: BlockFurnace.h:20
Mixin for blocks whose meta on placement depends on the yaw of the player placing the block.
Definition: Mixins.h:162
cMetaRotator< cBlockEntityHandler, BitMask, North, East, South, West, false > Super
Definition: Mixins.h:163
Definition: Item.h:37
This class bridges a vector of cItem for safe access via Lua.
Definition: Item.h:215