Cuberite
A lightweight, fast and extensible game server for Minecraft
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
Blocks
BlockSlime.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
BlockHandler.h
"
4
5
6
7
8
9
class
cBlockSlimeHandler
:
10
public
cClearMetaOnDrop
<cBlockHandler>
11
{
12
using
super
=
cClearMetaOnDrop<cBlockHandler>
;
13
14
public
:
15
16
cBlockSlimeHandler
(
BLOCKTYPE
a_BlockType):
17
super
(a_BlockType)
18
{
19
}
20
21
22
23
24
25
virtual
ColourID
GetMapBaseColourID
(
NIBBLETYPE
a_Meta)
override
26
{
27
UNUSED
(a_Meta);
28
return
1;
29
}
30
};
31
32
33
34
BlockHandler.h
BLOCKTYPE
unsigned char BLOCKTYPE
The datatype used by blockdata.
Definition:
ChunkDef.h:42
NIBBLETYPE
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
Definition:
ChunkDef.h:45
UNUSED
#define UNUSED
Definition:
Globals.h:152
cBlockSlimeHandler
Definition:
BlockSlime.h:9
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
cBlockSlimeHandler::cBlockSlimeHandler
cBlockSlimeHandler(BLOCKTYPE a_BlockType)
Definition:
BlockSlime.h:16
cBlockSlimeHandler::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:
BlockSlime.h:25
Generated on Mon Feb 24 2020 09:04:13 for Cuberite by
1.8.11