Interface DropItemEvent.Close
- All Superinterfaces:
AffectEntityEvent
,Cancellable
,DropItemEvent
,Event
,SpawnEntityEvent
- Enclosing interface:
- DropItemEvent
Called whenever an
Item
is dispensed by closing a Container
.
e.g. The item on the cursor while closing the container or the contents of a crafting table with no free slots in the players inventory.
Canceling this event only prevents the items from being dropped. Affected inventories are not rolled back!
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.item.inventory.DropItemEvent
DropItemEvent.Close, DropItemEvent.Custom, DropItemEvent.Destruct, DropItemEvent.Dispense, DropItemEvent.Pre
Nested classes/interfaces inherited from interface org.spongepowered.api.event.entity.SpawnEntityEvent
SpawnEntityEvent.Custom, SpawnEntityEvent.Pre
-
Method Summary
Methods inherited from interface org.spongepowered.api.event.entity.AffectEntityEvent
entities, entitySnapshots, filterEntities, filterEntityLocations
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled