public class TypeNrsGameObjectMatcher extends java.lang.Object implements GameObjectMatcher
GameObjectMatcher
matching certain archetype types.Constructor and Description |
---|
TypeNrsGameObjectMatcher(int... types)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isMatching(@NotNull GameObject<?,?,?> gameObject)
Matches a
GameObject . |
@NotNull java.lang.String |
toString() |
public TypeNrsGameObjectMatcher(@NotNull int... types)
types
- the types to matchpublic boolean isMatching(@NotNull @NotNull GameObject<?,?,?> gameObject)
GameObjectMatcher
GameObject
.isMatching
in interface GameObjectMatcher
gameObject
- the GameObject
to matchtrue
if this matcher matches the given game object,
otherwise false
@NotNull public @NotNull java.lang.String toString()
toString
in class java.lang.Object