aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/client/SearchArgument.java
blob: 44521487180cd33929fa69d8ef6d693c02c26df9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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);
    }
    
}