endstone::BlockBreakEvent
Called when a block is broken by a player.
Bases: endstone::Cancellable< BlockEvent >
Attributes:
Name | Description |
---|---|
NAME |
Functions:
Name | Description |
---|---|
BlockBreakEvent | |
getEventName | |
getPlayer | Gets 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