Cuberite
A lightweight, fast and extensible game server for Minecraft
Static Public Member Functions | Private Types | Private Member Functions | List of all members
cBlockBedHandler Class Referencefinal

#include <BlockBed.h>

Inheritance diagram for cBlockBedHandler:
Inheritance graph
[legend]
Collaboration diagram for cBlockBedHandler:
Collaboration graph
[legend]

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
 

Detailed Description

Definition at line 22 of file BlockBed.h.

Member Typedef Documentation

◆ Super

using cBlockBedHandler::Super = cYawRotator<cBlockEntityHandler, 0x03, 0x02, 0x03, 0x00, 0x01>
private

Definition at line 25 of file BlockBed.h.

Member Function Documentation

◆ ConvertToPickups()

cItems cBlockBedHandler::ConvertToPickups ( NIBBLETYPE  a_BlockMeta,
const cItem a_Tool 
) const
overrideprivatevirtual

Definition at line 160 of file BlockBed.cpp.

◆ GetMapBaseColourID()

virtual ColourID cBlockBedHandler::GetMapBaseColourID ( NIBBLETYPE  a_Meta) const
inlineoverrideprivatevirtual

Definition at line 102 of file BlockBed.h.

◆ MetaDataToDirection()

static Vector3i cBlockBedHandler::MetaDataToDirection ( NIBBLETYPE  a_MetaData)
inlinestatic

Definition at line 31 of file BlockBed.h.

◆ OnBroken()

void cBlockBedHandler::OnBroken ( cChunkInterface a_ChunkInterface,
cWorldInterface a_WorldInterface,
const Vector3i  a_BlockPos,
BLOCKTYPE  a_OldBlockType,
NIBBLETYPE  a_OldBlockMeta,
const cEntity a_Digger 
) const
overrideprivatevirtual

Definition at line 17 of file BlockBed.cpp.

◆ OnUse()

bool cBlockBedHandler::OnUse ( cChunkInterface a_ChunkInterface,
cWorldInterface a_WorldInterface,
cPlayer a_Player,
const Vector3i  a_ClickedBlockPos,
eBlockFace  a_ClickedBlockFace,
const Vector3i  a_CursorPos 
) const
overrideprivatevirtual

Definition at line 58 of file BlockBed.cpp.

◆ VacateBed()

static void cBlockBedHandler::VacateBed ( cChunkInterface a_ChunkInterface,
cPlayer a_Player 
)
inlinestatic

Definition at line 43 of file BlockBed.h.


The documentation for this class was generated from the following files: