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

#include <BlockEndPortalFrame.h>

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

Private Types

using Super = cYawRotator< cBlockHandler, 0x03, E_META_END_PORTAL_FRAME_ZP, E_META_END_PORTAL_FRAME_XM, E_META_END_PORTAL_FRAME_ZM, E_META_END_PORTAL_FRAME_XP >
 

Private Member Functions

virtual ColourID GetMapBaseColourID (NIBBLETYPE a_Meta) const override
 
virtual void OnPlaced (cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface, Vector3i a_BlockPos, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) const override
 

Static Private Member Functions

static bool FindAndSetPortal (Vector3i a_FirstFrame, NIBBLETYPE a_Direction, cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface)
 Returns false if portal cannot be made, true if portal was made. More...
 
static bool IsPortalFrame (BLOCKTYPE BlockType)
 Return true if this block is a portal frame. More...
 
static bool IsValidFrameAtPos (cChunkInterface &a_ChunkInterface, Vector3i a_BlockPos, NIBBLETYPE a_ShouldFace)
 Return true if this block is a portal frame, has an eye, and is facing the correct direction. More...
 

Additional Inherited Members

- Public Member Functions inherited from cMetaRotator< Base, BitMask, North, East, South, West, AssertIfNotMatched >
constexpr cMetaRotator (BLOCKTYPE a_BlockType)
 
- Static Public Member Functions inherited from cYawRotator< cBlockHandler, 0x03, E_META_END_PORTAL_FRAME_ZP, E_META_END_PORTAL_FRAME_XM, E_META_END_PORTAL_FRAME_ZM, E_META_END_PORTAL_FRAME_XP >
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 cYawRotator< cBlockHandler, 0x03, E_META_END_PORTAL_FRAME_ZP, E_META_END_PORTAL_FRAME_XM, E_META_END_PORTAL_FRAME_ZM, E_META_END_PORTAL_FRAME_XP >
 ~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 10 of file BlockEndPortalFrame.h.

Member Typedef Documentation

◆ Super

Definition at line 18 of file BlockEndPortalFrame.h.

Member Function Documentation

◆ FindAndSetPortal()

static bool cBlockEndPortalFrameHandler::FindAndSetPortal ( Vector3i  a_FirstFrame,
NIBBLETYPE  a_Direction,
cChunkInterface a_ChunkInterface,
cWorldInterface a_WorldInterface 
)
inlinestaticprivate

Returns false if portal cannot be made, true if portal was made.

Definition at line 49 of file BlockEndPortalFrame.h.

◆ GetMapBaseColourID()

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

Definition at line 192 of file BlockEndPortalFrame.h.

◆ IsPortalFrame()

static bool cBlockEndPortalFrameHandler::IsPortalFrame ( BLOCKTYPE  BlockType)
inlinestaticprivate

Return true if this block is a portal frame.

Definition at line 183 of file BlockEndPortalFrame.h.

◆ IsValidFrameAtPos()

static bool cBlockEndPortalFrameHandler::IsValidFrameAtPos ( cChunkInterface a_ChunkInterface,
Vector3i  a_BlockPos,
NIBBLETYPE  a_ShouldFace 
)
inlinestaticprivate

Return true if this block is a portal frame, has an eye, and is facing the correct direction.

Definition at line 167 of file BlockEndPortalFrame.h.

◆ OnPlaced()

virtual void cBlockEndPortalFrameHandler::OnPlaced ( cChunkInterface a_ChunkInterface,
cWorldInterface a_WorldInterface,
Vector3i  a_BlockPos,
BLOCKTYPE  a_BlockType,
NIBBLETYPE  a_BlockMeta 
) const
inlineoverrideprivatevirtual

Definition at line 32 of file BlockEndPortalFrame.h.


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