Skip to Content
⚠ Under Construction
ReferenceC++ APIBlockBreakEvent

endstone::BlockBreakEvent

Called when a block is broken by a player.

Bases: endstone::Cancellable< BlockEvent >

Attributes:

NameDescription
NAME

Functions:

NameDescription
BlockBreakEvent
getEventName
getPlayerGets the Player that is breaking the block involved in this event.

NAME

const std::string endstone::BlockBreakEvent::NAME;

BlockBreakEvent

BlockBreakEvent(std::unique_ptr<Block> block, Player &player)

getEventName

std::string getEventName() override const

Gets a user-friendly identifier for this event.

Returns:

name of this event

getPlayer

Player &getPlayer() const

Gets the Player that is breaking the block involved in this event.

Returns:

The Player that is breaking the block involved in this event

Last updated on