Cuberite
A lightweight, fast and extensible game server for Minecraft
src
Blocks
BlockHopper.h
Go to the documentation of this file.
1
2
// BlockHopper.h
3
4
// Declares the cBlockHopperHandler class representing the handler for the Hopper block
5
6
#include "
Mixins.h
"
7
8
9
10
class
cBlockHopperHandler
final :
11
public
cClearMetaOnDrop
<cMetaRotator<cBlockEntityHandler, 0x7, E_META_HOPPER_FACING_ZP, E_META_HOPPER_FACING_XM, E_META_HOPPER_FACING_ZM, E_META_HOPPER_FACING_XP>>
12
{
13
using
Super
=
cClearMetaOnDrop<cMetaRotator<cBlockEntityHandler, 0x7, E_META_HOPPER_FACING_ZP, E_META_HOPPER_FACING_XM, E_META_HOPPER_FACING_ZM, E_META_HOPPER_FACING_XP>
>;
14
15
public
:
16
17
using
Super::Super;
18
19
private
:
20
21
virtual
ColourID
GetMapBaseColourID
(
NIBBLETYPE
a_Meta)
const override
22
{
23
UNUSED
(a_Meta);
24
return
11;
25
}
26
} ;
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
cBlockHopperHandler
Definition:
BlockHopper.h:12
cBlockHopperHandler::GetMapBaseColourID
virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
Definition:
BlockHopper.h:21
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:06 for Cuberite by
1.9.1