blob: ebf6b5eed0aa5e819ebb46e3f8bb96945f6130e0 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
package at.hannibal2.skyhanni.config.features.combat;
import at.hannibal2.skyhanni.config.FeatureToggle;
import at.hannibal2.skyhanni.config.core.config.Position;
import com.google.gson.annotations.Expose;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDropdown;
import io.github.notenoughupdates.moulconfig.annotations.ConfigLink;
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
import io.github.notenoughupdates.moulconfig.observer.Property;
public class QuiverDisplayConfig {
@Expose
@ConfigOption(name = "Enable", desc = "Show the number of arrows you have.")
@ConfigEditorBoolean
@FeatureToggle
public boolean enabled = true;
@Expose
@ConfigLink(owner = QuiverDisplayConfig.class, field = "enabled")
public Position quiverDisplayPos = new Position(260, -15);
@Expose
@ConfigOption(name = "Show arrow icon", desc = "Display an icon next to the Quiver Display.")
@ConfigEditorBoolean
public Property<Boolean> showIcon = Property.of(true);
@Expose
@ConfigOption(
name = "When to show",
desc = "Decide in what conditions to show the display."
)
@ConfigEditorDropdown
public Property<ShowWhen> whenToShow = Property.of(ShowWhen.ONLY_BOW_HAND);
public enum ShowWhen {
ALWAYS("Always"),
ONLY_BOW_INVENTORY("Bow in inventory"),
ONLY_BOW_HAND("Bow in hand"),
;
private final String str;
ShowWhen(String str) {
this.str = str;
}
@Override
public String toString() {
return str;
}
}
}
|