Interface ChangeEntityEquipmentEvent
- All Superinterfaces:
Cancellable
,Event
- All Known Subinterfaces:
ChangeEntityEquipmentEvent.Break
- All Known Implementing Classes:
AbstractChangeEntityEquipmentEvent
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Called when the players equipment is broken or otherwise replaced by an empty item-stack. -
Method Summary
Modifier and TypeMethodDescriptionentity()
Gets theEntity
.slot()
Gets theSlot
.Gets theTransaction
ofItemStackSnapshot
s for this event.Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
Method Details
-
entity
Entity entity()Gets theEntity
.- Returns:
- The entity
-
slot
Slot slot()Gets theSlot
.- Returns:
- The slot
-
transaction
Transaction<ItemStackSnapshot> transaction()Gets theTransaction
ofItemStackSnapshot
s for this event.- Returns:
- The transaction of the item
-