Interface EntityResurrectEvent

All Superinterfaces:
Cancellable, Event

public interface EntityResurrectEvent extends Event, Cancellable
Fired when an item that protects from death, such as a totem of undying, is about to save an entity from a lethal hit. Cancelling it lets the entity die and keeps the item.
Since:
0.1.0
  • Method Details

    • entity

      LivingEntity entity()
      Returns the entity about to be saved.
      Returns:
      the entity about to be saved
      Since:
      0.1.0
    • source

      DamageSource source()
      Returns the lethal hit.
      Returns:
      the lethal hit
      Since:
      0.1.0
    • item

      ItemStack item()
      Returns the item used up to save the entity.
      Returns:
      the item used up to save the entity
      Since:
      0.1.0