Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

EntityDestroyContext

What onEntityDestroy receives.

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.