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 ExplosionEvent
ExplosionEvent.Detonate, ExplosionEvent.Pre -
Field Summary
FieldsFields inherited from class AbstractAffectEntityEvent
entities, entitySnapshotsFields inherited from class 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 AbstractAffectEntityEvent
entities, entitySnapshots, filterEntitiesMethods inherited from class AbstractEvent
initMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AffectEntityEvent
entities, entitySnapshots, filterEntities, filterEntityLocationsMethods inherited from interface Cancellable
isCancelled, setCancelledMethods inherited from interface ExplosionEvent
explosionMethods inherited from interface 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
-