Cuberite
A lightweight, fast and extensible game server for Minecraft
|
#include <BlockBed.h>
Static Public Member Functions | |
static Vector3i | MetaDataToDirection (NIBBLETYPE a_MetaData) |
static void | VacateBed (cChunkInterface &a_ChunkInterface, cPlayer &a_Player) |
Static Public Member Functions inherited from cYawRotator< cBlockEntityHandler, 0x03, 0x02, 0x03, 0x00, 0x01 > | |
static NIBBLETYPE | YawToMetaData (double a_Rotation) |
Converts the rotation value as returned by cPlayer::GetYaw() to the appropriate metadata value for a block placed by a player facing that way. More... | |
Private Types | |
using | Super = cYawRotator< cBlockEntityHandler, 0x03, 0x02, 0x03, 0x00, 0x01 > |
Private Member Functions | |
virtual cItems | ConvertToPickups (NIBBLETYPE a_BlockMeta, const cItem *a_Tool) const override |
virtual ColourID | GetMapBaseColourID (NIBBLETYPE a_Meta) const override |
virtual void | OnBroken (cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface, const Vector3i a_BlockPos, BLOCKTYPE a_OldBlockType, NIBBLETYPE a_OldBlockMeta, const cEntity *a_Digger) const override |
virtual bool | OnUse (cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface, cPlayer &a_Player, const Vector3i a_ClickedBlockPos, eBlockFace a_ClickedBlockFace, const Vector3i a_CursorPos) const override |
Additional Inherited Members | |
Public Member Functions inherited from cMetaRotator< Base, BitMask, North, East, South, West, AssertIfNotMatched > | |
constexpr | cMetaRotator (BLOCKTYPE a_BlockType) |
Protected Member Functions inherited from cYawRotator< cBlockEntityHandler, 0x03, 0x02, 0x03, 0x00, 0x01 > | |
~cYawRotator ()=default | |
Protected Member Functions inherited from cMetaRotator< Base, BitMask, North, East, South, West, AssertIfNotMatched > | |
virtual NIBBLETYPE | MetaMirrorXY (NIBBLETYPE a_Meta) const override |
virtual NIBBLETYPE | MetaMirrorYZ (NIBBLETYPE a_Meta) const override |
virtual NIBBLETYPE | MetaRotateCCW (NIBBLETYPE a_Meta) const override |
virtual NIBBLETYPE | MetaRotateCW (NIBBLETYPE a_Meta) const override |
~cMetaRotator ()=default | |
Definition at line 22 of file BlockBed.h.
|
private |
Definition at line 25 of file BlockBed.h.
|
overrideprivatevirtual |
Definition at line 160 of file BlockBed.cpp.
|
inlineoverrideprivatevirtual |
Definition at line 102 of file BlockBed.h.
|
inlinestatic |
Definition at line 31 of file BlockBed.h.
|
overrideprivatevirtual |
Definition at line 17 of file BlockBed.cpp.
|
overrideprivatevirtual |
Definition at line 58 of file BlockBed.cpp.
|
inlinestatic |
Definition at line 43 of file BlockBed.h.