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

#include <BlockComparator.h>

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

Static Public Member Functions

static Vector3i GetFrontCoordinate (Vector3i a_Position, NIBBLETYPE a_Meta)
 
static Vector3i GetRearCoordinate (Vector3i a_Position, NIBBLETYPE a_Meta)
 
static Vector3i GetSideCoordinate (Vector3i a_Position, NIBBLETYPE a_Meta, bool a_bInverse)
 
static bool IsInSubtractionMode (NIBBLETYPE a_Meta)
 
- Static Public Member Functions inherited from cYawRotator< cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03 >
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< cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03 >
 

Private Member Functions

virtual bool CanBeAt (const cChunk &a_Chunk, const Vector3i a_Position, const NIBBLETYPE a_Meta) const override
 
virtual cItems ConvertToPickups (const NIBBLETYPE a_BlockMeta, const cItem *const a_Tool) const override
 
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
 

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< cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03 >
 ~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 12 of file BlockComparator.h.

Member Typedef Documentation

◆ Super

using cBlockComparatorHandler::Super = cYawRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03>
private

Definition at line 15 of file BlockComparator.h.

Member Function Documentation

◆ CanBeAt()

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

Definition at line 155 of file BlockComparator.h.

◆ ConvertToPickups()

virtual cItems cBlockComparatorHandler::ConvertToPickups ( const NIBBLETYPE  a_BlockMeta,
const cItem *const  a_Tool 
) const
inlineoverrideprivatevirtual

Definition at line 190 of file BlockComparator.h.

◆ GetFrontCoordinate()

static Vector3i cBlockComparatorHandler::GetFrontCoordinate ( Vector3i  a_Position,
NIBBLETYPE  a_Meta 
)
inlinestatic

Definition at line 26 of file BlockComparator.h.

◆ GetMapBaseColourID()

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

Definition at line 199 of file BlockComparator.h.

◆ GetRearCoordinate()

static Vector3i cBlockComparatorHandler::GetRearCoordinate ( Vector3i  a_Position,
NIBBLETYPE  a_Meta 
)
inlinestatic

Definition at line 83 of file BlockComparator.h.

◆ GetSideCoordinate()

static Vector3i cBlockComparatorHandler::GetSideCoordinate ( Vector3i  a_Position,
NIBBLETYPE  a_Meta,
bool  a_bInverse 
)
inlinestatic

Definition at line 45 of file BlockComparator.h.

◆ IsInSubtractionMode()

static bool cBlockComparatorHandler::IsInSubtractionMode ( NIBBLETYPE  a_Meta)
inlinestatic

Definition at line 21 of file BlockComparator.h.

◆ IsUseable()

virtual bool cBlockComparatorHandler::IsUseable ( void  ) const
inlineoverrideprivatevirtual

Definition at line 146 of file BlockComparator.h.

◆ OnCancelRightClick()

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

Definition at line 127 of file BlockComparator.h.

◆ OnUse()

virtual bool cBlockComparatorHandler::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 104 of file BlockComparator.h.


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