public class EntityTasks
extends java.lang.Object
Constructor and Description |
---|
EntityTasks() |
Modifier and Type | Method and Description |
---|---|
static <T> Task<java.lang.Boolean> |
requiringAttributeEventually(Entity entity,
AttributeSensor<T> sensor,
<any> condition,
Duration timeout)
creates an (unsubmitted) task which waits for the attribute to satisfy the given predicate,
throwing if it times out or becomes unmanaged
|
static <T> Task<java.lang.Boolean> |
requiringAttributeEventually(java.lang.Iterable<Entity> entities,
AttributeSensor<T> sensor,
<any> condition,
Duration timeout)
as {@link #requiringAttributeEventually(Entity, AttributeSensor, Predicate, Duration) for multiple entities
|
static <T> Task<java.lang.Boolean> |
testingAttributeEventually(Entity entity,
AttributeSensor<T> sensor,
<any> condition,
Duration timeout)
creates an (unsubmitted) task which waits for the attribute to satisfy the given predicate,
returning false if it times out or becomes unmanaged
|
static <T> Task<java.lang.Boolean> |
testingAttributeEventually(java.lang.Iterable<Entity> entities,
AttributeSensor<T> sensor,
<any> condition,
Duration timeout)
as {@link #testingAttributeEventually(Entity, AttributeSensor, Predicate, Duration) for multiple entities
|
public static <T> Task<java.lang.Boolean> testingAttributeEventually(Entity entity, AttributeSensor<T> sensor, <any> condition, Duration timeout)
public static <T> Task<java.lang.Boolean> requiringAttributeEventually(Entity entity, AttributeSensor<T> sensor, <any> condition, Duration timeout)
public static <T> Task<java.lang.Boolean> testingAttributeEventually(java.lang.Iterable<Entity> entities, AttributeSensor<T> sensor, <any> condition, Duration timeout)
public static <T> Task<java.lang.Boolean> requiringAttributeEventually(java.lang.Iterable<Entity> entities, AttributeSensor<T> sensor, <any> condition, Duration timeout)