aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/features/FishingConfig.java
blob: 56dfc021ec74b34ec9d396b71229e586d9c5e5b7 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
package at.hannibal2.skyhanni.config.features;

import at.hannibal2.skyhanni.config.FeatureToggle;
import at.hannibal2.skyhanni.config.core.config.Position;
import com.google.gson.annotations.Expose;
import io.github.moulberry.moulconfig.annotations.Accordion;
import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean;
import io.github.moulberry.moulconfig.annotations.ConfigEditorColour;
import io.github.moulberry.moulconfig.annotations.ConfigEditorDropdown;
import io.github.moulberry.moulconfig.annotations.ConfigEditorKeybind;
import io.github.moulberry.moulconfig.annotations.ConfigEditorSlider;
import io.github.moulberry.moulconfig.annotations.ConfigOption;
import io.github.moulberry.moulconfig.observer.Property;
import org.lwjgl.input.Keyboard;

public class FishingConfig {

    @Expose
    @ConfigOption(name = "Trophy Fishing", desc = "")
    @Accordion
    public TrophyFishingConfig trophyFishing = new TrophyFishingConfig();

    public static class TrophyFishingConfig {

        @Expose
        @ConfigOption(name = "Trophy Fishing Chat Messages", desc = "")
        @Accordion
        public ChatMessagesConfig chatMessages = new ChatMessagesConfig();

        public static class ChatMessagesConfig {

            @Expose
            @ConfigOption(
                    name = "Trophy Counter",
                    desc = "Counts Trophy messages from chat and tells you how many you have found."
            )
            @ConfigEditorBoolean
            @FeatureToggle
            public boolean enabled = false;

            @Expose
            @ConfigOption(
                    name = "Trophy Counter Design",
                    desc = "§fStyle 1: §72. §6§lGOLD §5Moldfin\n" +
                            "§fStyle 2: §bYou caught a §5Moldfin §6§lGOLD§b. §7(2)\n" +
                            "§fStyle 3: §bYou caught your 2nd §6§lGOLD §5Moldfin§b."
            )
            @ConfigEditorDropdown(values = {"Style 1", "Style 2", "Style 3"})
            public int design = 0;

            @Expose
            @ConfigOption(name = "Show Total Amount", desc = "Show total amount of all rarities at the end of the chat message.")
            @ConfigEditorBoolean
            public boolean totalAmount = false;

            @Expose
            @ConfigOption(name = "Trophy Fish Info", desc = "Show information and stats about a Trophy Fish when hovering over a catch message in chat.")
            @ConfigEditorBoolean
            @FeatureToggle
            public boolean tooltip = true;

            @Expose
            @ConfigOption(name = "Hide Repeated Catches", desc = "Delete past catches of the same Trophy Fish from chat.")
            @ConfigEditorBoolean
            @FeatureToggle
            public boolean duplicateHider = false;

            @Expose
            @ConfigOption(name = "Bronze Duplicates", desc = "Hide duplicate messages for bronze Trophy Fishes from chat.")
            @ConfigEditorBoolean
            public boolean bronzeHider = false;

            @Expose
            @ConfigOption(name = "Silver Duplicates", desc = "Hide duplicate messages for silver Trophy Fishes from chat.")
            @ConfigEditorBoolean
            public boolean silverHider = false;
        }

        @Expose
        @ConfigOption(name = "Fillet Tooltip", desc = "Show fillet value of Trophy Fish in tooltip.")
        @ConfigEditorBoolean
        @FeatureToggle
        public boolean filletTooltip = true;

        @Expose
        @ConfigOption(name = "Odger Waypoint", desc = "Show the Odger waypoint when Trophy Fishes are in the inventory and no lava rod in hand.")
        @ConfigEditorBoolean
        @FeatureToggle
        public boolean odgerLocation = true;
    }

    @Expose
    @ConfigOption(name = "Thunder Spark", desc = "")
    @Accordion
    public ThunderSparkConfig thunderSpark = new ThunderSparkConfig();

    public static class ThunderSparkConfig {
        @Expose
        @ConfigOption(name = "Thunder Spark Highlight", desc = "Highlight Thunder Sparks after killing a Thunder.")
        @ConfigEditorBoolean
        @FeatureToggle
        public boolean highlight = false;

        @Expose
        @ConfigOption(name = "Thunder Spark Color", desc = "Color of the Thunder Sparks.")
        @ConfigEditorColour
        public String color = "0:255:255:255:255";
    }

    @Expose
    @ConfigOption(name = "Barn Fishing Timer", desc = "")
    @Accordion
    public BarnTimerConfig barnTimer = new BarnTimerConfig();

    public static class BarnTimerConfig {
        @Expose
        @ConfigOption(
                name = "Barn Fishing Timer",
                desc = "Show the time and amount of sea creatures while fishing on the barn via hub."
        )
        @ConfigEditorBoolean
        @FeatureToggle
        public boolean enabled = true;

        @Expose
        @ConfigOption(
                name = "Worm Fishing",
                desc = "Show the Barn Fishing Timer even for worms or other sea creatures in the Crystal Hollows."
        )
        @ConfigEditorBoolean
        public boolean crystalHollows = true;

        @Expose
        @ConfigOption(
                name = "Stranded Fishing",
                desc = "Show the Barn Fishing Timer even on all the different islands Stranded players can visit."
        )
        @ConfigEditorBoolean
        public boolean forStranded = true;

        @Expose
        @ConfigOption(
                name = "Worm Cap Alert",
                desc = "Alerts you with sound if you hit the Worm Sea Creature limit of 60."
        )
        @ConfigEditorBoolean
        public boolean wormLimitAlert = true;

        @Expose
        @ConfigOption(name = "Reset Timer Hotkey", desc = "Press this key to reset the timer manualy")
        @ConfigEditorKeybind(defaultKey = Keyboard.KEY_NONE)
        public int manualResetTimer = Keyboard.KEY_NONE;

        @Expose
        @ConfigOption(name = "Fishing Timer Alert", desc = "Change the amount of time in seconds until the timer dings.")
        @ConfigEditorSlider(
                minValue = 240,
                maxValue = 360,
                minStep = 10
        )
        public int alertTime = 330;

        @Expose
        public Position pos = new Position(10, 10, false, true);
    }

    @Expose
    @ConfigOption(name = "Chum/Chumcap Bucket Hider", desc = "")
    @Accordion
    public ChumBucketHiderConfig chumBucketHider = new ChumBucketHiderConfig();

    public static class ChumBucketHiderConfig {

        @Expose
        @ConfigOption(name = "Enable", desc = "Hide the Chum/Chumcap Bucket name tags for other players.")
        @ConfigEditorBoolean
        @FeatureToggle
        public Property<Boolean> enabled = Property.of(true);

        @Expose
        @ConfigOption(name = "Hide Bucket", desc = "Hide the Chum/Chumcap Bucket.")
        @ConfigEditorBoolean
        public Property<Boolean> hideBucket = Property.of(false);

        @Expose
        @ConfigOption(name = "Hide Own", desc = "Hides your own Chum/Chumcap Bucket.")
        @ConfigEditorBoolean
        public Property<Boolean> hideOwn = Property.of(false);
    }

    @Expose
    @ConfigOption(name = "Fished Item Name", desc = "")
    @Accordion
    public FishedItemNameConfig fishedItemName = new FishedItemNameConfig();

    public static class FishedItemNameConfig {

        @Expose
        @ConfigOption(name = "Enabled", desc = "Show the fished item name above the item when fishing.")
        @ConfigEditorBoolean
        @FeatureToggle
        public boolean enabled = true;

        @Expose
        @ConfigOption(name = "Show Bait", desc = "Also show the name of the consumed bait.")
        @ConfigEditorBoolean
        public boolean showBaits = false;

    }

    @Expose
    @ConfigOption(name = "Fishing Hook Display", desc = "")
    @Accordion
    public FishingHookDisplayConfig fishingHookDisplay = new FishingHookDisplayConfig();

    public static class FishingHookDisplayConfig {

        @Expose
        @ConfigOption(name = "Enabled", desc = "Display the Hypixel timer until the fishing hook can be pulled out of the water/lava, only bigger and on your screen.")
        @ConfigEditorBoolean
        @FeatureToggle
        public boolean enabled = true;

        @Expose
        @ConfigOption(
                name = "Hide Armor Stand",
                desc = "Hide the original armor stand from Hypixel when the SkyHanni display is enabled."
        )
        @ConfigEditorBoolean
        public boolean hideArmorStand = true;

        @Expose
        public Position position = new Position(460, -240, 3.4f);
    }

    @Expose
    @ConfigOption(name = "Rare Sea Creatures", desc = "")
    @Accordion
    public RareCatches rareCatches = new RareCatches();

    public static class RareCatches {

        @Expose
        @ConfigOption(name = "Alert (Own Sea Creatures)", desc = "Show an alert on screen when you catch a rare sea creature.")
        @ConfigEditorBoolean
        @FeatureToggle
        public boolean alertOwnCatches = true;

        @Expose
        @ConfigOption(name = "Alert (Other Sea Creatures)", desc = "Show an alert on screen when other players nearby catch a rare sea creature.")
        @ConfigEditorBoolean
        public boolean alertOtherCatches = false;

        @Expose
        @ConfigOption(name = "Play Sound Alert", desc = "Play a sound effect when rare sea creature alerts are displayed.")
        @ConfigEditorBoolean
        public boolean playSound = true;

        @Expose
        @ConfigOption(name = "Highlight", desc = "Highlight nearby rare sea creatures.")
        @ConfigEditorBoolean
        @FeatureToggle
        public boolean highlight = false;

    }

    @Expose
    @ConfigOption(
            name = "Shark Fish Counter",
            desc = "Counts how many Sharks have been caught."
    )
    @Con