Cuberite
A lightweight, fast and extensible game server for Minecraft
BlockFlowerPot.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 
5 
6 
7 
8 class cBlockFlowerPotHandler final :
10 {
12 
13 public:
14 
15  using Super::Super;
16 
17 private:
18 
19  virtual cItems ConvertToPickups(const NIBBLETYPE a_BlockMeta, const cItem * const a_Tool) const override
20  {
21  return cItem(E_ITEM_FLOWER_POT, 1, 0);
22  }
23 
24 
25 
26 
27 
28  virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
29  {
30  UNUSED(a_Meta);
31  return 0;
32  }
33 } ;
34 
35 
36 
37 
@ E_ITEM_FLOWER_POT
Definition: BlockType.h:436
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
Wrapper for blocks that have a cBlockEntity descendant attached to them and can be "used" by the play...
Definition: BlockEntity.h:16
cBlockHandler Super
Definition: BlockEntity.h:17
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...
virtual cItems ConvertToPickups(const NIBBLETYPE a_BlockMeta, const cItem *const a_Tool) const override
Returns the pickups that would result if the block was mined by a_Digger using a_Tool.
Definition: Item.h:37
This class bridges a vector of cItem for safe access via Lua.
Definition: Item.h:215