Cuberite
A lightweight, fast and extensible game server for Minecraft
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
final :
10
public
cClearMetaOnDrop
<cBlockHandler>
11
{
12
public
:
13
14
using
cClearMetaOnDrop<cBlockHandler>::cClearMetaOnDrop
;
15
16
private
:
17
18
virtual
ColourID
GetMapBaseColourID
(
NIBBLETYPE
a_Meta)
const override
19
{
20
UNUSED
(a_Meta);
21
return
1;
22
}
23
};
BlockHandler.h
NIBBLETYPE
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
Definition:
ChunkDef.h:44
ColourID
Byte ColourID
Definition:
Globals.h:162
UNUSED
#define UNUSED
Definition:
Globals.h:72
cBlockSlimeHandler
Definition:
BlockSlime.h:11
cBlockSlimeHandler::GetMapBaseColourID
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:
BlockSlime.h:18
cClearMetaOnDrop
Mixin to clear the block's meta value when converting to a pickup.
Definition:
Mixins.h:31
Generated on Fri Oct 25 2024 05:01:08 for Cuberite by
1.9.1