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 Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.world.ExplosionEvent
ExplosionEvent.Detonate, ExplosionEvent.Pre -
Field Summary
FieldsFields inherited from class org.spongepowered.api.event.impl.entity.AbstractAffectEntityEvent
entities, entitySnapshotsFields inherited from class org.spongepowered.api.event.impl.AbstractEvent
currentOrder -
Constructor Summary
Constructors -
Method Summary
Modifier 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.AbstractAffectEntityEvent
entities, entitySnapshots, filterEntitiesMethods inherited from class org.spongepowered.api.event.impl.AbstractEvent
initMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.spongepowered.api.event.entity.AffectEntityEvent
entities, entitySnapshots, filterEntities, filterEntityLocationsMethods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelledMethods inherited from interface org.spongepowered.api.event.world.ExplosionEvent
explosionMethods inherited from interface org.spongepowered.api.event.world.ExplosionEvent.Detonate
world
-
Field Details
-
affectedLocations
-
-
Constructor Details
-
AbstractDetonateEvent
public AbstractDetonateEvent()
-
-
Method Details
-
affectedLocations
Description 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 interfaceExplosionEvent.Detonate- Returns:
- The list of blocks that will be affected by the explosion
-
filterAffectedLocations
Description 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 interfaceExplosionEvent.Detonate- Parameters:
predicate- The predicate to use for filtering
-