Supports registering for an event that fires after an entity has died.

Methods

  • Beta

    Parameters

    Returns (arg: EntityDieAfterEvent) => void

    Returns the closure that can be used in future downstream calls to unsubscribe.

    Subscribes to an event that fires when an entity dies.

    This function can't be called in read-only mode.

    This function can be called in early-execution mode.

  • Beta

    Parameters

    Returns void

    Stops this event from calling your function when an entity dies.

    This function can't be called in read-only mode.

    This function can be called in early-execution mode.