public class Filters
extends java.lang.Object
Constructor and Description |
---|
Filters() |
Modifier and Type | Method and Description |
---|---|
static <T extends EntityComponent> |
and(java.lang.Class<T> type,
ComponentFilter<? super T>... operands)
Creates a ComponentFilter that returns true if all of the
supplied filters are true.
|
static <T extends EntityComponent> |
fieldEquals(java.lang.Class<T> type,
java.lang.String field,
java.lang.Object value)
Creates a ComponentFilter that returns true if the specified
field of the specified component type matches the specified value.
|
static <T extends EntityComponent> |
or(java.lang.Class<T> type,
ComponentFilter<? super T>... operands)
Creates a ComponentFilter that returns true if any of the
supplied filters are true.
|
public static <T extends EntityComponent> ComponentFilter<T> fieldEquals(java.lang.Class<T> type, java.lang.String field, java.lang.Object value)
public static <T extends EntityComponent> ComponentFilter<T> or(java.lang.Class<T> type, ComponentFilter<? super T>... operands)
public static <T extends EntityComponent> ComponentFilter<T> and(java.lang.Class<T> type, ComponentFilter<? super T>... operands)