Skip to Content
⚠ Under Construction
ReferenceC++ APIActorDeathEvent

endstone::ActorDeathEvent

Called when an Actor dies.

Bases: endstone::ActorEvent< Mob >

Attributes:

NameDescription
NAME

Functions:

NameDescription
ActorDeathEvent
getDamageSourceGets the source of damage which caused the death.
getEventName

NAME

const std::string endstone::ActorDeathEvent::NAME;

ActorDeathEvent

ActorDeathEvent(Mob &actor, std::unique_ptr<DamageSource> damage_source)

getDamageSource

DamageSource &getDamageSource() const

Gets the source of damage which caused the death.

Returns:

a DamageSource detailing the source of the damage for the death.

getEventName

std::string getEventName() override const

Gets a user-friendly identifier for this event.

Returns:

name of this event

Last updated on