Interface DropItemEvent.Destruct
-
- All Superinterfaces:
AffectEntityEvent
,Cancellable
,DropItemEvent
,Event
,SpawnEntityEvent
- Enclosing interface:
- DropItemEvent
public static interface DropItemEvent.Destruct extends DropItemEvent, SpawnEntityEvent
Called when one or moreItem
drops are triggered by an object such as anEntity
orBlockType
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
orDestructEntityEvent.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
-
-