-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathModOverlayMod.java
More file actions
641 lines (585 loc) · 20.2 KB
/
ModOverlayMod.java
File metadata and controls
641 lines (585 loc) · 20.2 KB
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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
/*
* This file is part of Apollo, licensed under the MIT License.
*
* Copyright (c) 2026 Moonsworth
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.lunarclient.apollo.mods.impl;
import com.lunarclient.apollo.option.NumberOption;
import com.lunarclient.apollo.option.SimpleOption;
import io.leangen.geantyref.TypeToken;
import java.awt.Color;
/**
* Configure various texture overlays, tweaks, and modifiers.
*
* @since 1.2.2
*/
public final class ModOverlayMod {
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> ENABLED = SimpleOption.<Boolean>builder()
.node("overlay-mod", "enabled").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* When View Bobbing is enabled, only bob your hand (requires View Bobbing to be enabled).
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> MINIMAL_VIEW_BOBBING = SimpleOption.<Boolean>builder()
.comment("When View Bobbing is enabled, only bob your hand (requires View Bobbing to be enabled).")
.node("overlay-mod", "minimal-view-bobbing").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final NumberOption<Float> FIRE_HEIGHT = NumberOption.<Float>number()
.node("overlay-mod", "fire-height").type(TypeToken.get(Float.class))
.min(0.0F).max(2.0F)
.defaultValue(1.0F)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final NumberOption<Float> SHIELD_HEIGHT = NumberOption.<Float>number()
.node("overlay-mod", "shield-height").type(TypeToken.get(Float.class))
.min(0.0F).max(2.0F)
.defaultValue(1.0F)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final NumberOption<Float> PUMPKIN_OVERLAY = NumberOption.<Float>number()
.node("overlay-mod", "pumpkin-overlay").type(TypeToken.get(Float.class))
.min(0.0F).max(1.0F)
.defaultValue(1.0F)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final NumberOption<Float> SPYGLASS_OVERLAY = NumberOption.<Float>number()
.node("overlay-mod", "spyglass-overlay").type(TypeToken.get(Float.class))
.min(0.0F).max(1.0F)
.defaultValue(1.0F)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final NumberOption<Float> FROST_OVERLAY = NumberOption.<Float>number()
.node("overlay-mod", "frost-overlay").type(TypeToken.get(Float.class))
.min(0.0F).max(1.0F)
.defaultValue(1.0F)
.notifyClient()
.build();
/**
* Hides grass and double grass blocks.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> HIDE_FOLIAGE = SimpleOption.<Boolean>builder()
.comment("Hides grass and double grass blocks")
.node("overlay-mod", "hide-foliage").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* Render shadows for entities.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> ENTITY_SHADOW = SimpleOption.<Boolean>builder()
.comment("Render shadows for entities")
.node("overlay-mod", "entity-shadow").type(TypeToken.get(Boolean.class))
.defaultValue(true)
.notifyClient()
.build();
/**
* Choose whether or not to hide arrows that are stuck in the ground.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> GROUND_ARROWS = SimpleOption.<Boolean>builder()
.comment("Choose whether or not to hide arrows that are stuck in the ground")
.node("overlay-mod", "ground-arrows").type(TypeToken.get(Boolean.class))
.defaultValue(true)
.notifyClient()
.build();
/**
* Choose whether or not to hide arrows that are stuck in players.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> STUCK_ARROWS = SimpleOption.<Boolean>builder()
.comment("Choose whether or not to hide arrows that are stuck in players")
.node("overlay-mod", "stuck-arrows").type(TypeToken.get(Boolean.class))
.defaultValue(true)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> HIDE_SKULLS = SimpleOption.<Boolean>builder()
.node("overlay-mod", "hide-skulls").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> CLEAR_GLASS = SimpleOption.<Boolean>builder()
.node("overlay-mod", "clear-glass").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final NumberOption<Float> CLEAR_GLASS_TRANSPARENCY = NumberOption.<Float>number()
.node("overlay-mod", "clear-glass-transparency").type(TypeToken.get(Float.class))
.min(0.0F).max(1.0F)
.defaultValue(0.0F)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> CLEAR_COLORED_GLASS = SimpleOption.<Boolean>builder()
.node("overlay-mod", "clear-colored-glass").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> CLEAR_GLASS_OUTLINE = SimpleOption.<Boolean>builder()
.node("overlay-mod", "clear-glass-outline").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final NumberOption<Integer> CLEAR_GLASS_OUTLINE_THICKNESS = NumberOption.<Integer>number()
.node("overlay-mod", "clear-glass-outline-thickness").type(TypeToken.get(Integer.class))
.min(1).max(3)
.defaultValue(1)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final NumberOption<Float> CLEAR_GLASS_OUTLINE_TRANSPARENCY = NumberOption.<Float>number()
.node("overlay-mod", "clear-glass-outline-transparency").type(TypeToken.get(Float.class))
.min(0.0F).max(1.0F)
.defaultValue(1.0F)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> ORE_OUTLINES = SimpleOption.<Boolean>builder()
.node("overlay-mod", "ore-outlines").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* Use a heuristic to calculate the ore outline color from the actual ore texture, to make it match better. Turning this option off will use predefined vanilla ore outline colors.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> SMART_OUTLINE_COLORS = SimpleOption.<Boolean>builder()
.comment("Use a heuristic to calculate the ore outline color from the actual ore texture, to make it match better. Turning this option off will use predefined vanilla ore outline colors.")
.node("overlay-mod", "smart-outline-colors").type(TypeToken.get(Boolean.class))
.defaultValue(true)
.notifyClient()
.build();
/**
* Apply some noise to the ore outlines to make them appear shiny.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> SHINY_ORE_OUTLINES = SimpleOption.<Boolean>builder()
.comment("Apply some noise to the ore outlines to make them appear shiny")
.node("overlay-mod", "shiny-ore-outlines").type(TypeToken.get(Boolean.class))
.defaultValue(true)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final NumberOption<Integer> ORE_OUTLINE_THICKNESS = NumberOption.<Integer>number()
.node("overlay-mod", "ore-outline-thickness").type(TypeToken.get(Integer.class))
.min(1).max(3)
.defaultValue(1)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> DIAMOND_ORE_OUTLINE = SimpleOption.<Boolean>builder()
.node("overlay-mod", "diamond-ore-outline").type(TypeToken.get(Boolean.class))
.defaultValue(true)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> GOLD_ORE_OUTLINE = SimpleOption.<Boolean>builder()
.node("overlay-mod", "gold-ore-outline").type(TypeToken.get(Boolean.class))
.defaultValue(true)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> IRON_ORE_OUTLINE = SimpleOption.<Boolean>builder()
.node("overlay-mod", "iron-ore-outline").type(TypeToken.get(Boolean.class))
.defaultValue(true)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> LAPIS_ORE_OUTLINE = SimpleOption.<Boolean>builder()
.node("overlay-mod", "lapis-ore-outline").type(TypeToken.get(Boolean.class))
.defaultValue(true)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> REDSTONE_ORE_OUTLINE = SimpleOption.<Boolean>builder()
.node("overlay-mod", "redstone-ore-outline").type(TypeToken.get(Boolean.class))
.defaultValue(true)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> EMERALD_ORE_OUTLINE = SimpleOption.<Boolean>builder()
.node("overlay-mod", "emerald-ore-outline").type(TypeToken.get(Boolean.class))
.defaultValue(true)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> COAL_ORE_OUTLINE = SimpleOption.<Boolean>builder()
.node("overlay-mod", "coal-ore-outline").type(TypeToken.get(Boolean.class))
.defaultValue(true)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> NETHER_QUARTZ_ORE_OUTLINE = SimpleOption.<Boolean>builder()
.node("overlay-mod", "nether-quartz-ore-outline").type(TypeToken.get(Boolean.class))
.defaultValue(true)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> BARRIER_OUTLINES = SimpleOption.<Boolean>builder()
.node("overlay-mod", "barrier-outlines").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final NumberOption<Integer> BARRIER_OUTLINE_THICKNESS = NumberOption.<Integer>number()
.node("overlay-mod", "barrier-outline-thickness").type(TypeToken.get(Integer.class))
.min(1).max(3)
.defaultValue(1)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Color> BARRIER_OUTLINE_COLOR = SimpleOption.<Color>builder()
.node("overlay-mod", "barrier-outline-color").type(TypeToken.get(Color.class))
.defaultValue(new Color(255, 0, 0, 191))
.notifyClient()
.build();
/**
* Make strings/tripwires more visible by changing their color.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> COLORED_STRING = SimpleOption.<Boolean>builder()
.comment("Make strings/tripwires more visible by changing their color")
.node("overlay-mod", "colored-string").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* Fill in the transparent spots on the string texture.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> BOLD_STRING = SimpleOption.<Boolean>builder()
.comment("Fill in the transparent spots on the string texture")
.node("overlay-mod", "bold-string").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Color> STRING_COLOR = SimpleOption.<Color>builder()
.node("overlay-mod", "string-color").type(TypeToken.get(Color.class))
.defaultValue(new Color(255, 0, 0))
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> OVERRIDE_XP_ORB_COLOR = SimpleOption.<Boolean>builder()
.node("overlay-mod", "override-xp-orb-color").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Color> XP_ORB_COLOR = SimpleOption.<Color>builder()
.node("overlay-mod", "xp-orb-color").type(TypeToken.get(Color.class))
.defaultValue(new Color(255, 255, 255, 128))
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> CUSTOM_FISHING_LINE = SimpleOption.<Boolean>builder()
.node("overlay-mod", "custom-fishing-line").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final NumberOption<Float> FISHING_LINE_THICKNESS = NumberOption.<Float>number()
.node("overlay-mod", "fishing-line-thickness").type(TypeToken.get(Float.class))
.min(0.5F).max(3.0F)
.defaultValue(1.0F)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Color> FISHING_LINE_COLOR = SimpleOption.<Color>builder()
.node("overlay-mod", "fishing-line-color").type(TypeToken.get(Color.class))
.defaultValue(new Color(0, 0, 0))
.notifyClient()
.build();
/**
* Improve visibility when riding a horse.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> HEADLESS_HORSES = SimpleOption.<Boolean>builder()
.comment("Improve visibility when riding a horse")
.node("overlay-mod", "headless-horses").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> DISABLE_DEATH_ANIMATION = SimpleOption.<Boolean>builder()
.node("overlay-mod", "disable-death-animation").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> DISABLE_DAMAGE_OVERLAY = SimpleOption.<Boolean>builder()
.node("overlay-mod", "disable-damage-overlay").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* Disable the rendering of the fire overlay when a mob or player is on fire.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> DISABLE_FIRE_OVERLAY = SimpleOption.<Boolean>builder()
.comment("Disable the rendering of the fire overlay when a mob or player is on fire.")
.node("overlay-mod", "disable-fire-overlay").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> HIDE_HELMET = SimpleOption.<Boolean>builder()
.node("overlay-mod", "hide-helmet").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* Does not work on elytra.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> HIDE_CHEST = SimpleOption.<Boolean>builder()
.comment("Does not work on elytra.")
.node("overlay-mod", "hide-chest").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> HIDE_LEGGINGS = SimpleOption.<Boolean>builder()
.node("overlay-mod", "hide-leggings").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> HIDE_BOOTS = SimpleOption.<Boolean>builder()
.node("overlay-mod", "hide-boots").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.notifyClient()
.build();
/**
* Disabling this allows you to hide armor slots for all entities.
*
* @since 1.2.2
*/
public static final SimpleOption<Boolean> SELF_ONLY = SimpleOption.<Boolean>builder()
.comment("Disabling this allows you to hide armor slots for all entities.")
.node("overlay-mod", "self-only").type(TypeToken.get(Boolean.class))
.defaultValue(true)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
@Deprecated
public static final NumberOption<Float> TOTEM_SCALE = NumberOption.<Float>number()
.node("overlay-mod", "totem-scale").type(TypeToken.get(Float.class))
.min(0.25F).max(1.5F)
.defaultValue(1.0F)
.notifyClient()
.build();
/**
* No documentation available.
*
* @since 1.2.2
*/
@Deprecated
public static final NumberOption<Float> HELD_ITEM_SCALE = NumberOption.<Float>number()
.node("overlay-mod", "held-item-scale").type(TypeToken.get(Float.class))
.min(0.25F).max(1.5F)
.defaultValue(1.0F)
.notifyClient()
.build();
private ModOverlayMod() {
}
}