Class AbstractDetonateEvent
java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
org.spongepowered.api.event.impl.entity.AbstractAffectEntityEvent
org.spongepowered.api.event.impl.world.AbstractDetonateEvent
- All Implemented Interfaces:
- Cancellable,- AffectEntityEvent,- Event,- ExplosionEvent,- ExplosionEvent.Detonate
public abstract class AbstractDetonateEvent
extends AbstractAffectEntityEvent
implements ExplosionEvent.Detonate
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.spongepowered.api.event.world.ExplosionEventExplosionEvent.Detonate, ExplosionEvent.Pre
- 
Field SummaryFieldsFields inherited from class org.spongepowered.api.event.impl.entity.AbstractAffectEntityEvententities, entitySnapshotsFields inherited from class org.spongepowered.api.event.impl.AbstractEventcurrentOrder
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets the list of calculated affected locations for blocks that will be removed due to the explosion.voidfilterAffectedLocations(Predicate<ServerLocation> predicate) Filters outServerLocation's fromExplosionEvent.Detonate.affectedLocations()to be affected by this event.Methods inherited from class org.spongepowered.api.event.impl.entity.AbstractAffectEntityEvententities, entitySnapshots, filterEntitiesMethods inherited from class org.spongepowered.api.event.impl.AbstractEventinitMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.spongepowered.api.event.entity.AffectEntityEvententities, entitySnapshots, filterEntities, filterEntityLocationsMethods inherited from interface org.spongepowered.api.event.CancellableisCancelled, setCancelledMethods inherited from interface org.spongepowered.api.event.world.ExplosionEventexplosionMethods inherited from interface org.spongepowered.api.event.world.ExplosionEvent.Detonateworld
- 
Field Details- 
affectedLocations
 
- 
- 
Constructor Details- 
AbstractDetonateEventpublic AbstractDetonateEvent()
 
- 
- 
Method Details- 
affectedLocationsDescription copied from interface:ExplosionEvent.DetonateGets the list of calculated affected locations for blocks that will be removed due to the explosion. This list can only be modified usingExplosionEvent.Detonate.filterAffectedLocations(Predicate).- Specified by:
- affectedLocationsin interface- ExplosionEvent.Detonate
- Returns:
- The list of blocks that will be affected by the explosion
 
- 
filterAffectedLocationsDescription copied from interface:ExplosionEvent.DetonateFilters outServerLocation's fromExplosionEvent.Detonate.affectedLocations()to be affected by this event.Locations for which the predicate returns falsewill be removed fromExplosionEvent.Detonate.affectedLocations().- Specified by:
- filterAffectedLocationsin interface- ExplosionEvent.Detonate
- Parameters:
- predicate- The predicate to use for filtering
 
 
-