endstone::ActorDeathEvent
Called when an Actor dies.
Bases: endstone::ActorEvent< Mob >
Attributes:
| Name | Description |
|---|---|
NAME |
Functions:
| Name | Description |
|---|---|
ActorDeathEvent | |
getDamageSource | Gets 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() constGets 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 constGets a user-friendly identifier for this event.
Returns:
name of this event
Last updated on