Class AbstractAffectEntityEvent
java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
org.spongepowered.api.event.impl.entity.AbstractAffectEntityEvent
- All Implemented Interfaces:
- Cancellable,- AffectEntityEvent,- Event
- Direct Known Subclasses:
- AbstractDetonateEvent,- AbstractSpawnEntityEvent
- 
Field SummaryFieldsFields inherited from class org.spongepowered.api.event.impl.AbstractEventcurrentOrder
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionentities()Gets theListof entities who will be affected after event resolution.Gets anListof the entity data un-affected by event changes.voidfilterEntities(Predicate<Entity> predicate) Filters outEntity's fromAffectEntityEvent.entities()to be affected by this event.Methods 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.AffectEntityEventfilterEntityLocationsMethods inherited from interface org.spongepowered.api.event.CancellableisCancelled, setCancelled
- 
Field Details- 
entities
- 
entitySnapshots
 
- 
- 
Constructor Details- 
AbstractAffectEntityEventpublic AbstractAffectEntityEvent()
 
- 
- 
Method Details- 
entitySnapshotsDescription copied from interface:AffectEntityEventGets anListof the entity data un-affected by event changes.This method MUST be called at Order.PREin order to be properly initialized, after which it can be called at any time. If it is not first called atOrder.PRE, it will throw anIllegalStateExceptionwhen invoked.- Specified by:
- entitySnapshotsin interface- AffectEntityEvent
- Returns:
- The ImmutableList
 
- 
entitiesDescription copied from interface:AffectEntityEventGets theListof entities who will be affected after event resolution. This list can only be modified usingAffectEntityEvent.filterEntities(Predicate).- Specified by:
- entitiesin interface- AffectEntityEvent
- Returns:
- The list of entities that will be affected.
 
- 
filterEntitiesDescription copied from interface:AffectEntityEventFilters outEntity's fromAffectEntityEvent.entities()to be affected by this event.Entities for which the predicate returns falsewill be removed fromAffectEntityEvent.entities().- Specified by:
- filterEntitiesin interface- AffectEntityEvent
- Parameters:
- predicate- The predicate to use for filtering
 
 
-