endstone::ActorExplodeEvent
Called when an actor explodes.
Bases: endstone::Cancellable< ActorEvent< Actor > >
Attributes:
Name | Description |
---|---|
NAME |
Functions:
Name | Description |
---|---|
ActorExplodeEvent | |
getBlockList | Returns the list of blocks that would have been removed or were removed from the explosion event. |
getBlockList | Returns the list of blocks that would have been removed or were removed from the explosion event. |
getEventName | |
getLocation | Returns the location where the explosion happened. |
NAME
const std::string endstone::ActorExplodeEvent::NAME;
ActorExplodeEvent
ActorExplodeEvent(Actor &actor, Location location, BlockList blocks)
getBlockList
const BlockList &getBlockList() const
Returns the list of blocks that would have been removed or were removed from the explosion event.
Returns:
All blown-up blocks
BlockList &getBlockList()
Returns the list of blocks that would have been removed or were removed from the explosion event.
Returns:
All blown-up blocks
getEventName
std::string getEventName() override const
Gets a user-friendly identifier for this event.
Returns:
name of this event
getLocation
const Location &getLocation() const
Returns the location where the explosion happened.
It is not possible to get this value from the Entity as the Entity no longer exists in the world.
Returns:
The location of the explosion
Last updated on