Cuberite
A lightweight, fast and extensible game server for Minecraft
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
Blocks
BlockFlowerPot.h
Go to the documentation of this file.
1
2
#pragma once
3
4
#include "
BlockEntity.h
"
5
6
7
8
9
10
class
cBlockFlowerPotHandler
:
11
public
cClearMetaOnDrop
<cBlockEntityHandler>
12
{
13
using
super
=
cClearMetaOnDrop<cBlockEntityHandler>
;
14
15
public
:
16
17
cBlockFlowerPotHandler
(
BLOCKTYPE
a_BlockType):
18
super
(a_BlockType)
19
{
20
}
21
22
23
24
25
26
virtual
ColourID
GetMapBaseColourID
(
NIBBLETYPE
a_Meta)
override
27
{
28
UNUSED
(a_Meta);
29
return
0;
30
}
31
} ;
32
33
34
35
BlockEntity.h
BLOCKTYPE
unsigned char BLOCKTYPE
The datatype used by blockdata.
Definition:
ChunkDef.h:42
cBlockFlowerPotHandler
Definition:
BlockFlowerPot.h:10
NIBBLETYPE
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
Definition:
ChunkDef.h:45
cBlockHandler
Definition:
BlockHandler.h:25
UNUSED
#define UNUSED
Definition:
Globals.h:152
ColourID
Byte ColourID
Definition:
Globals.h:118
cClearMetaOnDrop
Mixin to clear the block's meta value when converting to a pickup.
Definition:
Mixins.h:55
cBlockFlowerPotHandler::GetMapBaseColourID
virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) override
Returns the base colour ID of the block, as will be represented on a map, as per documentation: https...
Definition:
BlockFlowerPot.h:26
cBlockFlowerPotHandler::cBlockFlowerPotHandler
cBlockFlowerPotHandler(BLOCKTYPE a_BlockType)
Definition:
BlockFlowerPot.h:17
Generated on Mon Feb 24 2020 09:04:13 for Cuberite by
1.8.11