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

#include <BlockLadder.h>

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

Static Public Member Functions

static bool CanBePlacedOn (const BLOCKTYPE a_BlockType, const eBlockFace a_BlockFace)
 Returns true if the ladder will be supported by the block through the given blockface. More...
 

Private Types

using Super = cClearMetaOnDrop< cMetaRotator< cBlockHandler, 0x07, 0x02, 0x05, 0x03, 0x04 > >
 

Private Member Functions

virtual bool CanBeAt (const cChunk &a_Chunk, const Vector3i a_Position, const NIBBLETYPE a_Meta) const override
 
virtual ColourID GetMapBaseColourID (NIBBLETYPE a_Meta) const override
 

Static Private Member Functions

static eBlockFace MetaDataToBlockFace (NIBBLETYPE a_MetaData)
 Converts the ladder block's meta to the block face of the neighbor to which the ladder is attached. More...
 

Additional Inherited Members

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

Member Typedef Documentation

◆ Super

using cBlockLadderHandler::Super = cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x07, 0x02, 0x05, 0x03, 0x04> >
private

Definition at line 15 of file BlockLadder.h.

Member Function Documentation

◆ CanBeAt()

virtual bool cBlockLadderHandler::CanBeAt ( const cChunk a_Chunk,
const Vector3i  a_Position,
const NIBBLETYPE  a_Meta 
) const
inlineoverrideprivatevirtual

Definition at line 56 of file BlockLadder.h.

◆ CanBePlacedOn()

static bool cBlockLadderHandler::CanBePlacedOn ( const BLOCKTYPE  a_BlockType,
const eBlockFace  a_BlockFace 
)
inlinestatic

Returns true if the ladder will be supported by the block through the given blockface.

Definition at line 23 of file BlockLadder.h.

◆ GetMapBaseColourID()

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

Definition at line 69 of file BlockLadder.h.

◆ MetaDataToBlockFace()

static eBlockFace cBlockLadderHandler::MetaDataToBlockFace ( NIBBLETYPE  a_MetaData)
inlinestaticprivate

Converts the ladder block's meta to the block face of the neighbor to which the ladder is attached.

Definition at line 40 of file BlockLadder.h.


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