Interface DropItemEvent.Destruct
- All Superinterfaces:
AffectEntityEvent
,Cancellable
,DropItemEvent
,Event
,SpawnEntityEvent
- Enclosing interface:
DropItemEvent
Called when one or more
Item
drops are triggered by an
object such as an Entity
or BlockType
destruction.
Canceling this event only prevents the items from being dropped.
Inventories or blocks affected are not rolled back. You might want
to listen to ChangeBlockEvent.Pre
or DestructEntityEvent.Death
.
-
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