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(GameObject<?,?,?> gameObject)
Matches an
GameObject . |
java.lang.String |
toString() |
public TypeNrsGameObjectMatcher(@NotNull int... types)
types
- the types to matchpublic boolean isMatching(@NotNull GameObject<?,?,?> gameObject)
GameObject
.isMatching
in interface GameObjectMatcher
gameObject
- the GameObject
to matchtrue
if this matcher matches the given game object,
otherwise false
@NotNull public java.lang.String toString()
toString
in class java.lang.Object