Cuberite
A lightweight, fast and extensible game server for Minecraft
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
:
11
public
cBlockHandler
12
{
13
public
:
14
cBlockSandHandler
(
BLOCKTYPE
a_BlockType)
15
:
cBlockHandler
(a_BlockType)
16
{
17
}
18
19
virtual
ColourID
GetMapBaseColourID
(
NIBBLETYPE
a_Meta)
override
20
{
21
UNUSED
(a_Meta);
22
return
2;
23
}
24
};
25
26
27
28
BlockHandler.h
BLOCKTYPE
unsigned char BLOCKTYPE
The datatype used by blockdata.
Definition:
ChunkDef.h:42
cBlockSandHandler::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:
BlockSand.h:19
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
cBlockSandHandler::cBlockSandHandler
cBlockSandHandler(BLOCKTYPE a_BlockType)
Definition:
BlockSand.h:14
ColourID
Byte ColourID
Definition:
Globals.h:118
cBlockSandHandler
Definition:
BlockSand.h:10
Generated on Mon Feb 24 2020 09:04:13 for Cuberite by
1.8.11