public class ArchetypeNameMatchCriteria<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements MatchCriteria<G,A,R>
MatchCriteria
that matches by archetype name.Constructor and Description |
---|
ArchetypeNameMatchCriteria(java.lang.String archetypeName)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(G gameObject)
Whether a
GameObject matches this criteria. |
public ArchetypeNameMatchCriteria(@NotNull java.lang.String archetypeName)
archetypeName
- the archetype name to matchpublic boolean matches(@NotNull G gameObject)
GameObject
matches this criteria.matches
in interface MatchCriteria<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
gameObject
- the game object to check