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

#include <BlockTrapdoor.h>

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

Private Types

using Super = cClearMetaOnDrop< cYawRotator< cBlockHandler, 0x03, 0x01, 0x02, 0x00, 0x03, false > >
 

Private Member Functions

virtual ColourID GetMapBaseColourID (NIBBLETYPE a_Meta) const override
 
virtual bool IsUseable (void) const override
 
virtual void OnCancelRightClick (cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface, cPlayer &a_Player, const Vector3i a_BlockPos, eBlockFace a_BlockFace) const override
 
virtual bool OnUse (cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface, cPlayer &a_Player, const Vector3i a_BlockPos, eBlockFace a_BlockFace, const Vector3i a_CursorPos) const override
 

Static Private Member Functions

static eBlockFace BlockMetaDataToBlockFace (NIBBLETYPE a_Meta)
 

Additional Inherited Members

- Public Member Functions inherited from cClearMetaOnDrop< cYawRotator< cBlockHandler, 0x03, 0x01, 0x02, 0x00, 0x03, false > >
constexpr cClearMetaOnDrop (BLOCKTYPE a_BlockType)
 
- Public Member Functions inherited from cMetaRotator< Base, 0x07, 0x02, 0x05, 0x03, 0x04, false >
constexpr cMetaRotator (BLOCKTYPE a_BlockType)
 
- Static Public Member Functions inherited from cYawRotator< Base, BitMask, North, East, South, West, AssertIfNotMatched >
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...
 
- Protected Member Functions inherited from cClearMetaOnDrop< cYawRotator< cBlockHandler, 0x03, 0x01, 0x02, 0x00, 0x03, false > >
 ~cClearMetaOnDrop ()=default
 
- Protected Member Functions inherited from cYawRotator< Base, BitMask, North, East, South, West, AssertIfNotMatched >
 ~cYawRotator ()=default
 
- Protected Member Functions inherited from cMetaRotator< Base, 0x07, 0x02, 0x05, 0x03, 0x04, false >
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 11 of file BlockTrapdoor.h.

Member Typedef Documentation

◆ Super

using cBlockTrapdoorHandler::Super = cClearMetaOnDrop<cYawRotator<cBlockHandler, 0x03, 0x01, 0x02, 0x00, 0x03, false> >
private

Definition at line 14 of file BlockTrapdoor.h.

Member Function Documentation

◆ BlockMetaDataToBlockFace()

static eBlockFace cBlockTrapdoorHandler::BlockMetaDataToBlockFace ( NIBBLETYPE  a_Meta)
inlinestaticprivate

Definition at line 74 of file BlockTrapdoor.h.

◆ GetMapBaseColourID()

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

Definition at line 94 of file BlockTrapdoor.h.

◆ IsUseable()

virtual bool cBlockTrapdoorHandler::IsUseable ( void  ) const
inlineoverrideprivatevirtual

Definition at line 22 of file BlockTrapdoor.h.

◆ OnCancelRightClick()

virtual void cBlockTrapdoorHandler::OnCancelRightClick ( cChunkInterface a_ChunkInterface,
cWorldInterface a_WorldInterface,
cPlayer a_Player,
const Vector3i  a_BlockPos,
eBlockFace  a_BlockFace 
) const
inlineoverrideprivatevirtual

Definition at line 58 of file BlockTrapdoor.h.

◆ OnUse()

virtual bool cBlockTrapdoorHandler::OnUse ( cChunkInterface a_ChunkInterface,
cWorldInterface a_WorldInterface,
cPlayer a_Player,
const Vector3i  a_BlockPos,
eBlockFace  a_BlockFace,
const Vector3i  a_CursorPos 
) const
inlineoverrideprivatevirtual

Definition at line 31 of file BlockTrapdoor.h.


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