public class GameObjectMatchers extends java.lang.Object implements java.lang.Iterable<NamedGameObjectMatcher>, java.io.Serializable
GameObjectMatcher instances.| Constructor and Description |
|---|
GameObjectMatchers() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGameObjectMatcher(NamedGameObjectMatcher gameObjectMatcher)
Adds a new
GameObjectMatcher. |
java.util.Collection<NamedGameObjectMatcher> |
getFilters()
Return all known game object matchers that should be used as filters.
|
GameObjectMatcher |
getMatcher(java.lang.String... ids)
Returns a matcher by id; returns
null if the matcher does not
exist. |
GameObjectMatcher |
getMatcherWarn(ErrorViewCollector errorViewCollector,
java.lang.String... ids)
Returns a matcher by id; prints a warning if the matcher does not exist.
|
java.util.Iterator<NamedGameObjectMatcher> |
iterator() |
@Nullable public GameObjectMatcher getMatcher(@NotNull java.lang.String... ids)
null if the matcher does not
exist.ids - the ids to findnull if no such matcher exists@Nullable public GameObjectMatcher getMatcherWarn(@NotNull ErrorViewCollector errorViewCollector, @NotNull java.lang.String... ids)
errorViewCollector - the error view collector to useids - the ids to findnull if no such matcher exists@NotNull public java.util.Collection<NamedGameObjectMatcher> getFilters()
public void addGameObjectMatcher(@NotNull
NamedGameObjectMatcher gameObjectMatcher)
GameObjectMatcher.gameObjectMatcher - the game object matcher to addpublic java.util.Iterator<NamedGameObjectMatcher> iterator()
iterator in interface java.lang.Iterable<NamedGameObjectMatcher>