public class NamedGameObjectMatcher extends java.lang.Object implements GameObjectMatcher
GameObjectMatcher with a localized name that
is suitable for the user interface. That name can be used to for instance for
menu item labels that are used on menu items to toggle the GameObjectMatcher on / off.| Constructor and Description |
|---|
NamedGameObjectMatcher(int editType,
@NotNull java.lang.String id,
@NotNull java.lang.String name,
boolean systemMatcher,
@Nullable GameObjectMatcher envGameObjectMatcher,
@NotNull GameObjectMatcher gameObjectMatcher)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEditType()
Returns the edit type associated with this matcher.
|
@NotNull java.lang.String |
getID()
Gets the ID of this
NamedGameObjectMatcher. |
@NotNull java.lang.String |
getName()
Gets the name of this
NamedGameObjectMatcher. |
boolean |
isMatching(@NotNull GameObject<?,?,?> gameObject)
Matches a
GameObject. |
boolean |
isSystemMatcher()
Returns whether this matcher is a system matcher.
|
public NamedGameObjectMatcher(int editType,
@NotNull
@NotNull java.lang.String id,
@NotNull
@NotNull java.lang.String name,
boolean systemMatcher,
@Nullable
@Nullable GameObjectMatcher envGameObjectMatcher,
@NotNull
@NotNull GameObjectMatcher gameObjectMatcher)
editType - the edit typeid - the ID for this GameObjectMatchername - the localized namesystemMatcher - whether this matcher is a system matcherenvGameObjectMatcher - the environment matchergameObjectMatcher - the matcher to delegate to@NotNull public @NotNull java.lang.String getName()
NamedGameObjectMatcher.NamedGameObjectMatcherpublic boolean isMatching(@NotNull
@NotNull GameObject<?,?,?> gameObject)
GameObjectMatcherGameObject.isMatching in interface GameObjectMatchergameObject - the GameObject to matchtrue if this matcher matches the given game object,
otherwise false@NotNull public @NotNull java.lang.String getID()
NamedGameObjectMatcher.NamedGameObjectMatcherpublic int getEditType()
public boolean isSystemMatcher()