Cuberite
A lightweight, fast and extensible game server for Minecraft
src
Blocks
BlockSand.h
Go to the documentation of this file.
1
2
#pragma once
3
4
#include "
BlockHandler.h
"
5
6
7
8
9
10
class
cBlockSandHandler
final :
11
public
cBlockHandler
12
{
13
public
:
14
15
using
cBlockHandler::cBlockHandler
;
16
17
private
:
18
19
virtual
ColourID
GetMapBaseColourID
(
NIBBLETYPE
a_Meta)
const override
20
{
21
UNUSED
(a_Meta);
22
return
2;
23
}
24
};
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
cBlockHandler
Definition:
BlockHandler.h:26
cBlockHandler::cBlockHandler
constexpr cBlockHandler(BLOCKTYPE a_BlockType)
Definition:
BlockHandler.h:29
cBlockSandHandler
Definition:
BlockSand.h:12
cBlockSandHandler::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:
BlockSand.h:19
Generated on Fri Oct 25 2024 05:01:08 for Cuberite by
1.9.1