Skip to Content
⚠ Under Construction
ReferenceC++ APIActorExplodeEvent

endstone::ActorExplodeEvent

Called when an actor explodes.

Bases: endstone::Cancellable< ActorEvent< Actor > >

Attributes:

NameDescription
NAME

Functions:

NameDescription
ActorExplodeEvent
getBlockListReturns the list of blocks that would have been removed or were removed from the explosion event.
getBlockListReturns the list of blocks that would have been removed or were removed from the explosion event.
getEventName
getLocationReturns 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