public class ObjectNameMatchCriteria<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 object name.| Constructor and Description |
|---|
ObjectNameMatchCriteria(@NotNull java.lang.String objectName)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(G gameObject)
Whether a
GameObject matches this criteria. |
public ObjectNameMatchCriteria(@NotNull
@NotNull java.lang.String objectName)
objectName - the object name to matchpublic boolean matches(@NotNull
G gameObject)
MatchCriteriaGameObject 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