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(@NotNull NamedGameObjectMatcher gameObjectMatcher)
Adds a new
GameObjectMatcher . |
@NotNull java.util.Collection<NamedGameObjectMatcher> |
getFilters()
Return all known game object matchers that should be used as filters.
|
@Nullable GameObjectMatcher |
getMatcher(java.lang.String... ids)
Returns a matcher by id; returns
null if the matcher does not
exist. |
@Nullable GameObjectMatcher |
getMatcherWarn(@NotNull 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 @Nullable 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 @Nullable GameObjectMatcher getMatcherWarn(@NotNull @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 @NotNull java.util.Collection<NamedGameObjectMatcher> getFilters()
public void addGameObjectMatcher(@NotNull @NotNull NamedGameObjectMatcher gameObjectMatcher)
GameObjectMatcher
.gameObjectMatcher
- the game object matcher to addpublic java.util.Iterator<NamedGameObjectMatcher> iterator()
iterator
in interface java.lang.Iterable<NamedGameObjectMatcher>