Interface EntityResurrectEvent
- All Superinterfaces:
Cancellable, Event
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 Summary
Methods inherited from interface Cancellable
isCancelled, setCancelled
-
Method Details
-
entity
LivingEntity entity()Returns the entity about to be saved.- Returns:
- the entity about to be saved
- Since:
- 0.1.0
-
source
-
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
-