Interface DropItemEvent.Dispense
- All Superinterfaces:
AffectEntityEvent
,Cancellable
,DropItemEvent
,Event
,SpawnEntityEvent
- All Known Subinterfaces:
ChangeInventoryEvent.Drop
,ChangeInventoryEvent.Drop.Full
,ChangeInventoryEvent.Drop.Single
,ClickContainerEvent.Creative.Drop
,ClickContainerEvent.Drop
,ClickContainerEvent.Drop.Full
,ClickContainerEvent.Drop.Outside
,ClickContainerEvent.Drop.Outside.Primary
,ClickContainerEvent.Drop.Outside.Secondary
,ClickContainerEvent.Drop.Single
- Enclosing interface:
DropItemEvent
Called whenever an
Item
is dispensed from a type of
Inventory
such as a Player
or Container
.
This does not include cases where the holder is destroyed resulting in
dropped Item
s.
Canceling this event does not guarantee that the associated
inventory is rolled back when this event is cancelled. You might
want to listen to ClickContainerEvent.Drop
.
-
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