Cuberite
A lightweight, fast and extensible game server for Minecraft
src
Blocks
BlockJukebox.h
Go to the documentation of this file.
1
2
#pragma once
3
4
#include "
BlockEntity.h
"
5
#include "
Mixins.h
"
6
7
8
9
10
11
class
cBlockJukeboxHandler
final :
12
public
cClearMetaOnDrop
<cBlockEntityHandler>
13
{
14
public
:
15
16
using
cClearMetaOnDrop<cBlockEntityHandler>::cClearMetaOnDrop
;
17
18
private
:
19
20
virtual
ColourID
GetMapBaseColourID
(
NIBBLETYPE
a_Meta)
const override
21
{
22
UNUSED
(a_Meta);
23
return
10;
24
}
25
} ;
Mixins.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
cBlockJukeboxHandler
Definition:
BlockJukebox.h:13
cBlockJukeboxHandler::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:
BlockJukebox.h:20
cClearMetaOnDrop
Mixin to clear the block's meta value when converting to a pickup.
Definition:
Mixins.h:31
BlockEntity.h
Generated on Fri Oct 25 2024 05:01:07 for Cuberite by
1.9.1