EntityDestroyContext
What onEntityDestroy receives.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
entity |
Entity |
The entity, still alive with every trait on it, and every reference to it not yet nulled; its attached children and its joints are released already. |
reason |
EntityDestroyReason |
Why it leaves. |
world |
World |
The world it leaves, to read. |
writer |
DestroyWriter |
What the hook writes another entity with, through findAuthority, while it runs. |