Package io.papermc.paper.event.entity
Class EntityEquipmentChangedEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
io.papermc.paper.event.entity.EntityEquipmentChangedEvent
Called whenever a change to an entity's equipment has been detected. This event is called after effects from
 attribute modifiers and enchantments have been updated.
 
Examples of actions that can trigger this event:
- An entity being added to a world.
- A player logging in.
- The durability of an equipment item changing.
- A dispenser equipping an item onto an entity.
- An entity picking up an armor or weapon item from the ground.
- A player changing their equipped armor.
- A player changes their currently held item.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceRepresents a change in equipment for a single equipment slot.Nested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.entity.EntityEvententity
- 
Constructor SummaryConstructorsConstructorDescriptionEntityEquipmentChangedEvent(LivingEntity entity, Map<EquipmentSlot, EntityEquipmentChangedEvent.EquipmentChange> equipmentChanges) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the Entity involved in this eventGets a map of changed slots to their respective equipment changes.static HandlerListMethods inherited from class org.bukkit.event.entity.EntityEventgetEntityTypeMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
EntityEquipmentChangedEvent@Internal public EntityEquipmentChangedEvent(LivingEntity entity, Map<EquipmentSlot, EntityEquipmentChangedEvent.EquipmentChange> equipmentChanges) 
 
- 
- 
Method Details- 
getEntityDescription copied from class:EntityEventReturns the Entity involved in this event- Overrides:
- getEntityin class- EntityEvent
- Returns:
- Entity who is involved in this event
 
- 
getEquipmentChangespublic @Unmodifiable Map<EquipmentSlot,EntityEquipmentChangedEvent.EquipmentChange> getEquipmentChanges()Gets a map of changed slots to their respective equipment changes.- Returns:
- the equipment changes map
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-