Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | List of all members
cBlockPluginInterface Class Referenceabstract

This interface is used to decouple block handlers from the cPluginManager dependency through cWorld. More...

#include <BlockPluginInterface.h>

Inheritance diagram for cBlockPluginInterface:
Inheritance graph
[legend]

Public Member Functions

virtual bool CallHookBlockSpread (Vector3i a_BlockPos, eSpreadSource a_Source)=0
 
virtual bool CallHookPlayerBreakingBlock (cPlayer &a_Player, Vector3i a_BlockPos, eBlockFace a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)=0
 
virtual bool CallHookPlayerBrokenBlock (cPlayer &a_Player, Vector3i a_BlockPos, eBlockFace a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)=0
 
virtual ~cBlockPluginInterface ()
 

Detailed Description

This interface is used to decouple block handlers from the cPluginManager dependency through cWorld.

The block handlers call this interface, which is then implemented by the specific classes that the caller provides.

Definition at line 27 of file BlockPluginInterface.h.

Constructor & Destructor Documentation

◆ ~cBlockPluginInterface()

virtual cBlockPluginInterface::~cBlockPluginInterface ( )
inlinevirtual

Definition at line 30 of file BlockPluginInterface.h.

Member Function Documentation

◆ CallHookBlockSpread()

virtual bool cBlockPluginInterface::CallHookBlockSpread ( Vector3i  a_BlockPos,
eSpreadSource  a_Source 
)
pure virtual

◆ CallHookPlayerBreakingBlock()

virtual bool cBlockPluginInterface::CallHookPlayerBreakingBlock ( cPlayer a_Player,
Vector3i  a_BlockPos,
eBlockFace  a_BlockFace,
BLOCKTYPE  a_BlockType,
NIBBLETYPE  a_BlockMeta 
)
pure virtual

◆ CallHookPlayerBrokenBlock()

virtual bool cBlockPluginInterface::CallHookPlayerBrokenBlock ( cPlayer a_Player,
Vector3i  a_BlockPos,
eBlockFace  a_BlockFace,
BLOCKTYPE  a_BlockType,
NIBBLETYPE  a_BlockMeta 
)
pure virtual

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