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

#include <BlockRedstoneRepeater.h>

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

Static Public Member Functions

static Vector3i GetFrontCoordinateOffset (NIBBLETYPE a_Meta)
 
static Vector3i GetLeftCoordinateOffset (NIBBLETYPE a_Meta)
 
static Vector3i GetRearCoordinateOffset (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 16 of file BlockRedstoneRepeater.h.

Member Typedef Documentation

◆ Super

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

Definition at line 19 of file BlockRedstoneRepeater.h.

Member Function Documentation

◆ CanBeAt()

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

Definition at line 110 of file BlockRedstoneRepeater.h.

◆ ConvertToPickups()

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

Definition at line 145 of file BlockRedstoneRepeater.h.

◆ GetFrontCoordinateOffset()

static Vector3i cBlockRedstoneRepeaterHandler::GetFrontCoordinateOffset ( NIBBLETYPE  a_Meta)
inlinestatic

Definition at line 25 of file BlockRedstoneRepeater.h.

◆ GetLeftCoordinateOffset()

static Vector3i cBlockRedstoneRepeaterHandler::GetLeftCoordinateOffset ( NIBBLETYPE  a_Meta)
inlinestatic

Definition at line 30 of file BlockRedstoneRepeater.h.

◆ GetMapBaseColourID()

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

Definition at line 154 of file BlockRedstoneRepeater.h.

◆ GetRearCoordinateOffset()

static Vector3i cBlockRedstoneRepeaterHandler::GetRearCoordinateOffset ( NIBBLETYPE  a_Meta)
inlinestatic

Definition at line 48 of file BlockRedstoneRepeater.h.

◆ IsUseable()

virtual bool cBlockRedstoneRepeaterHandler::IsUseable ( void  ) const
inlineoverrideprivatevirtual

Definition at line 101 of file BlockRedstoneRepeater.h.

◆ OnCancelRightClick()

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

Definition at line 85 of file BlockRedstoneRepeater.h.

◆ OnUse()

virtual bool cBlockRedstoneRepeaterHandler::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 67 of file BlockRedstoneRepeater.h.


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