3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/world/events/EventResult.h"
7#include "mc/world/level/block/actor/PistonState.h"
38 virtual ::EventResult onBlockDestroyedByPlayer(
47 virtual ::EventResult onBlockInPosWillBeDestroyedByPlayer(
::Player& player,
::BlockPos const& pos);
51 onBlockMovedByPiston(
::BlockPos const& pistonPos,
::BlockPos const& blockPos, ::PistonState
const action);
54 virtual ::EventResult onBlockDestructionStopped(
::Player& player,
::BlockPos const& blockPos,
int progress);
60 virtual ::EventResult onBlockInteractedWith(
::Player& player,
::BlockPos const& blockPos);
70 virtual ::EventResult onUnknownBlockReceived(
::Level& level,
::NewBlockID const& blockId, ushort data);
Definition BlockEventListener.h:22
MCAPI::EventResult $onBlockModified(::BlockPos const &pos, ::Block const &oldBlock, ::Block const &newBlock)
MCAPI::EventResult $onBlockPlacedByPlayer(::Player &player, ::Block const &placedBlock, ::BlockPos const &pos, bool isUnderwater)
MCAPI::EventResult $onBlockInteractedWith(::Player &player, ::BlockPos const &blockPos)
MCAPI::EventResult $onUnknownBlockReceived(::Level &level, ::NewBlockID const &blockId, ushort data)
MCAPI::EventResult $onBlockMovedByPiston(::BlockPos const &pistonPos, ::BlockPos const &blockPos, ::PistonState const action)
MCAPI::EventResult $onEvent(::BlockNotificationEvent const &event)
static MCAPI void ** $vftable()
MCAPI::EventResult $onBlockExploded(::Dimension &dimension, ::BlockPos const &blockPos, ::Block const &destroyedBlock, ::Actor *source)
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 $onBlockDestructionStarted(::Player &, ::BlockPos const &, ::Block const &, uchar const)
MCAPI::EventResult $onBlockDestructionStopped(::Player &player, ::BlockPos const &blockPos, int progress)
Definition Dimension.h:83
Definition ItemStackBase.h:35
Definition BlockNotificationEvent.h:63
Definition NewBlockID.h:8