public interface AffectEntityEvent extends TargetWorldEvent, Cancellable, CauseTracked
Entity
instances as a bulk action.
The constraint is that if an action can be deemed as necessary for selective
individualized processing, such as InteractEntityEvent.Attack
,
the actioned Event
is handled individually. If a bulk of
Entity
instances are being affected, for example by an
Explosion
"damaging" a varying amount of Entity
instances.
Other cases will be included as necessary.Modifier and Type | Method and Description |
---|---|
List<? extends Entity> |
filterEntities(Predicate<Entity> predicate)
Filters out
Entity 's from getEntities()
to be affected by this event. |
List<? extends Entity> |
filterEntityLocations(Predicate<Location<World>> predicate)
Filters out
Location 's from
getEntities() to be affected by this event. |
List<? extends Entity> |
getEntities()
Gets the
List who will be affected after event
resolution. |
List<EntitySnapshot> |
getEntitySnapshots()
Gets an
List of the entity data
un-affected by event changes. |
getTargetWorld
getCallbacks
isCancelled, setCancelled
getCause
List<EntitySnapshot> getEntitySnapshots()
List
of the entity data
un-affected by event changes.List<? extends Entity> getEntities()
List
who will be affected after event
resolution.List<? extends Entity> filterEntityLocations(Predicate<Location<World>> predicate)
Location
's from
getEntities()
to be affected by this event.predicate
- The predicate to use for filtering