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

#include <BlockObserver.h>

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

Static Public Member Functions

static Vector3i GetObservingFaceOffset (NIBBLETYPE a_Meta)
 
static Vector3i GetSignalOutputOffset (NIBBLETYPE a_Meta)
 
- Static Public Member Functions inherited from cDisplacementYawRotator< Base, BitMask, North, East, South, West, Up, Down >
static NIBBLETYPE DisplacementYawToMetaData (const Vector3d a_PlacePosition, const Vector3d a_EyePosition, const double a_Rotation)
 Converts the placement position, eye position as returned by cPlayer::GetEyePosition(), and rotation value as returned by cPlayer::GetYaw() to the appropriate metadata value for a block placed by a player facing that way. More...
 
- Static Public Member Functions inherited from cYawRotator< Base, 0x07, 0x02, 0x05, 0x03, 0x04 >
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 = cClearMetaOnDrop< cDisplacementYawRotator< cBlockHandler > >
 

Additional Inherited Members

- Public Member Functions inherited from cClearMetaOnDrop< cDisplacementYawRotator< cBlockHandler > >
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< cDisplacementYawRotator< cBlockHandler > >
 ~cClearMetaOnDrop ()=default
 
- Protected Member Functions inherited from cDisplacementYawRotator< Base, BitMask, North, East, South, West, Up, Down >
virtual NIBBLETYPE MetaMirrorXZ (NIBBLETYPE a_Meta) const override
 
 ~cDisplacementYawRotator ()=default
 
- Protected Member Functions inherited from cYawRotator< Base, 0x07, 0x02, 0x05, 0x03, 0x04 >
 ~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 8 of file BlockObserver.h.

Member Typedef Documentation

◆ Super

Definition at line 11 of file BlockObserver.h.

Member Function Documentation

◆ GetObservingFaceOffset()

static Vector3i cBlockObserverHandler::GetObservingFaceOffset ( NIBBLETYPE  a_Meta)
inlinestatic

Definition at line 17 of file BlockObserver.h.

◆ GetSignalOutputOffset()

static Vector3i cBlockObserverHandler::GetSignalOutputOffset ( NIBBLETYPE  a_Meta)
inlinestatic

Definition at line 22 of file BlockObserver.h.


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