diff options
Diffstat (limited to 'src/main/java/me/shedaniel/rei/client/SearchArgument.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/client/SearchArgument.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/client/SearchArgument.java b/src/main/java/me/shedaniel/rei/client/SearchArgument.java new file mode 100644 index 000000000..445214871 --- /dev/null +++ b/src/main/java/me/shedaniel/rei/client/SearchArgument.java @@ -0,0 +1,36 @@ +package me.shedaniel.rei.client; + +public class SearchArgument { + + public enum ArgumentType { + TEXT, MOD, TOOLTIP + } + + private ArgumentType argumentType; + private String text; + private boolean include; + + public SearchArgument(ArgumentType argumentType, String text, boolean include) { + this.argumentType = argumentType; + this.text = text; + this.include = include; + } + + public ArgumentType getArgumentType() { + return argumentType; + } + + public String getText() { + return text; + } + + public boolean isInclude() { + return include; + } + + @Override + public String toString() { + return String.format("Argument[%s]: name = %s, include = %b", argumentType.name(), text, include); + } + +} |
