LeviLamina
Loading...
Searching...
No Matches
BlockEventListener Class Reference

Public Types

using EventType = ::BlockNotificationEvent
 

Public Member Functions

virtual::EventResult onBlockPlacedByPlayer (::Player &player, ::Block const &placedBlock, ::BlockPos const &pos, bool isUnderwater)
 
virtual::EventResult onBlockDestroyedByPlayer (::Player &player, ::Block const &destroyedBlock, ::BlockPos const &pos, ::ItemStackBase const &, ::ItemStackBase const &)
 
virtual::EventResult onBlockInPosWillBeDestroyedByPlayer (::Player &player, ::BlockPos const &pos)
 
virtual::EventResult onBlockMovedByPiston (::BlockPos const &pistonPos, ::BlockPos const &blockPos, ::PistonState const action)
 
virtual::EventResult onBlockDestructionStopped (::Player &player, ::BlockPos const &blockPos, int progress)
 
virtual::EventResult onBlockDestructionStarted (::Player &, ::BlockPos const &, ::Block const &, uchar const)
 
virtual::EventResult onBlockInteractedWith (::Player &player, ::BlockPos const &blockPos)
 
virtual::EventResult onBlockExploded (::Dimension &dimension, ::BlockPos const &blockPos, ::Block const &destroyedBlock, ::Actor *source)
 
virtual::EventResult onBlockModified (::BlockPos const &pos, ::Block const &oldBlock, ::Block const &newBlock)
 
virtual::EventResult onUnknownBlockReceived (::Level &level, ::NewBlockID const &blockId, ushort data)
 
virtual::EventResult onEvent (::BlockNotificationEvent const &event)
 
MCAPI::EventResult $onBlockPlacedByPlayer (::Player &player, ::Block const &placedBlock, ::BlockPos const &pos, bool isUnderwater)
 
MCAPI::EventResult $onBlockDestroyedByPlayer (::Player &player, ::Block const &destroyedBlock, ::BlockPos const &pos, ::ItemStackBase const &, ::ItemStackBase const &)
 
MCAPI::EventResult $onBlockInPosWillBeDestroyedByPlayer (::Player &player, ::BlockPos const &pos)
 
MCAPI::EventResult $onBlockMovedByPiston (::BlockPos const &pistonPos, ::BlockPos const &blockPos, ::PistonState const action)
 
MCAPI::EventResult $onBlockDestructionStopped (::Player &player, ::BlockPos const &blockPos, int progress)
 
MCAPI::EventResult $onBlockDestructionStarted (::Player &, ::BlockPos const &, ::Block const &, uchar const)
 
MCAPI::EventResult $onBlockInteractedWith (::Player &player, ::BlockPos const &blockPos)
 
MCAPI::EventResult $onBlockExploded (::Dimension &dimension, ::BlockPos const &blockPos, ::Block const &destroyedBlock, ::Actor *source)
 
MCAPI::EventResult $onBlockModified (::BlockPos const &pos, ::Block const &oldBlock, ::Block const &newBlock)
 
MCAPI::EventResult $onUnknownBlockReceived (::Level &level, ::NewBlockID const &blockId, ushort data)
 
MCAPI::EventResult $onEvent (::BlockNotificationEvent const &event)
 

Static Public Member Functions

static MCAPI void ** $vftable ()
 

Member Function Documentation

◆ $onBlockPlacedByPlayer()

MCAPI::EventResult BlockEventListener::$onBlockPlacedByPlayer ( ::Player & player,
::Block const & placedBlock,
::BlockPos const & pos,
bool isUnderwater )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onBlockDestroyedByPlayer()

MCAPI::EventResult BlockEventListener::$onBlockDestroyedByPlayer ( ::Player & player,
::Block const & destroyedBlock,
::BlockPos const & pos,
::ItemStackBase const & ,
::ItemStackBase const &  )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onBlockInPosWillBeDestroyedByPlayer()

MCAPI::EventResult BlockEventListener::$onBlockInPosWillBeDestroyedByPlayer ( ::Player & player,
::BlockPos const & pos )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onBlockMovedByPiston()

MCAPI::EventResult BlockEventListener::$onBlockMovedByPiston ( ::BlockPos const & pistonPos,
::BlockPos const & blockPos,
::PistonState const action )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onBlockDestructionStopped()

MCAPI::EventResult BlockEventListener::$onBlockDestructionStopped ( ::Player & player,
::BlockPos const & blockPos,
int progress )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onBlockDestructionStarted()

MCAPI::EventResult BlockEventListener::$onBlockDestructionStarted ( ::Player & ,
::BlockPos const & ,
::Block const & ,
uchar const  )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onBlockInteractedWith()

MCAPI::EventResult BlockEventListener::$onBlockInteractedWith ( ::Player & player,
::BlockPos const & blockPos )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onBlockExploded()

MCAPI::EventResult BlockEventListener::$onBlockExploded ( ::Dimension & dimension,
::BlockPos const & blockPos,
::Block const & destroyedBlock,
::Actor * source )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onBlockModified()

MCAPI::EventResult BlockEventListener::$onBlockModified ( ::BlockPos const & pos,
::Block const & oldBlock,
::Block const & newBlock )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onUnknownBlockReceived()

MCAPI::EventResult BlockEventListener::$onUnknownBlockReceived ( ::Level & level,
::NewBlockID const & blockId,
ushort data )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onEvent()

MCAPI::EventResult BlockEventListener::$onEvent ( ::BlockNotificationEvent const & event)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

static MCAPI void ** BlockEventListener::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

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