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

#include <BlockAnvil.h>

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

Private Types

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

Private Member Functions

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 () 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)
 
- Static Public Member Functions inherited from cYawRotator< cBlockHandler, 0x03, 0x03, 0x00, 0x01, 0x02 >
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, 0x03, 0x00, 0x01, 0x02 >
 ~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 13 of file BlockAnvil.h.

Member Typedef Documentation

◆ Super

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

Definition at line 16 of file BlockAnvil.h.

Member Function Documentation

◆ ConvertToPickups()

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

Definition at line 24 of file BlockAnvil.h.

◆ GetMapBaseColourID()

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

Definition at line 60 of file BlockAnvil.h.

◆ IsUseable()

virtual bool cBlockAnvilHandler::IsUseable ( ) const
inlineoverrideprivatevirtual

Definition at line 51 of file BlockAnvil.h.

◆ OnUse()

virtual bool cBlockAnvilHandler::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 33 of file BlockAnvil.h.


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