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 &currentItem, ::ItemStackBase const &itemBeforeBlockBreak)
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 &player, ::BlockPos const &pos, ::Block const &hitBlock, uchar const face)
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)
MCFOLD::EventResult $onBlockDestroyedByPlayer (::Player &player, ::Block const &destroyedBlock, ::BlockPos const &pos, ::ItemStackBase const &currentItem, ::ItemStackBase const &itemBeforeBlockBreak)
MCFOLD::EventResult $onBlockInPosWillBeDestroyedByPlayer (::Player &player, ::BlockPos const &pos)
MCFOLD::EventResult $onBlockMovedByPiston (::BlockPos const &pistonPos, ::BlockPos const &blockPos, ::PistonState const action)
MCFOLD::EventResult $onBlockDestructionStopped (::Player &player, ::BlockPos const &blockPos, int progress)
MCFOLD::EventResult $onBlockDestructionStarted (::Player &player, ::BlockPos const &pos, ::Block const &hitBlock, uchar const face)
MCFOLD::EventResult $onBlockInteractedWith (::Player &player, ::BlockPos const &blockPos)
MCFOLD::EventResult $onBlockExploded (::Dimension &dimension, ::BlockPos const &blockPos, ::Block const &destroyedBlock, ::Actor *source)
MCFOLD::EventResult $onBlockModified (::BlockPos const &pos, ::Block const &oldBlock, ::Block const &newBlock)
MCFOLD::EventResult $onUnknownBlockReceived (::Level &level, ::NewBlockID const &blockId, ushort data)

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