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 (int a_BlockX, int a_BlockY, int a_BlockZ, eSpreadSource a_Source)=0
 
virtual bool CallHookPlayerBreakingBlock (cPlayer &a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)=0
 
virtual bool CallHookPlayerBrokenBlock (cPlayer &a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, 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

virtual cBlockPluginInterface::~cBlockPluginInterface ( )
inlinevirtual

Definition at line 30 of file BlockPluginInterface.h.

Member Function Documentation

virtual bool cBlockPluginInterface::CallHookBlockSpread ( int  a_BlockX,
int  a_BlockY,
int  a_BlockZ,
eSpreadSource  a_Source 
)
pure virtual
virtual bool cBlockPluginInterface::CallHookPlayerBreakingBlock ( cPlayer a_Player,
int  a_BlockX,
int  a_BlockY,
int  a_BlockZ,
eBlockFace  a_BlockFace,
BLOCKTYPE  a_BlockType,
NIBBLETYPE  a_BlockMeta 
)
pure virtual
virtual bool cBlockPluginInterface::CallHookPlayerBrokenBlock ( cPlayer a_Player,
int  a_BlockX,
int  a_BlockY,
int  a_BlockZ,
eBlockFace  a_BlockFace,
BLOCKTYPE  a_BlockType,
NIBBLETYPE  a_BlockMeta 
)
pure virtual

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