Skip to content

Commit 7560dd4

Browse files
Sync LunarClient Mods & Options
1 parent 6ce0729 commit 7560dd4

File tree

10 files changed

+265
-29
lines changed

10 files changed

+265
-29
lines changed

api/src/main/java/com/lunarclient/apollo/mods/impl/ModAutoTextHotkey.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ public final class ModAutoTextHotkey {
4343
.notifyClient()
4444
.build();
4545

46+
/**
47+
* Displays a notification when an input is blocked by the server.
48+
*
49+
* @since %release_version%
50+
*/
51+
public static final SimpleOption<Boolean> NOTIFY_ON_BLOCKED_INPUT = SimpleOption.<Boolean>builder()
52+
.comment("Displays a notification when an input is blocked by the server")
53+
.node("auto-text-hotkey", "notify-on-blocked-input").type(TypeToken.get(Boolean.class))
54+
.notifyClient()
55+
.build();
56+
4657
private ModAutoTextHotkey() {
4758
}
4859

api/src/main/java/com/lunarclient/apollo/mods/impl/ModDirectionHud.java

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ public final class ModDirectionHud {
124124
*
125125
* @since 1.0.0
126126
*/
127-
public static final SimpleOption<Boolean> USE_LEGACY_STYLE = SimpleOption.<Boolean>builder()
128-
.node("direction-hud", "use-legacy-style").type(TypeToken.get(Boolean.class))
127+
public static final SimpleOption<Boolean> SHOW_MARKER = SimpleOption.<Boolean>builder()
128+
.node("direction-hud", "show-marker").type(TypeToken.get(Boolean.class))
129129
.notifyClient()
130130
.build();
131131

@@ -134,8 +134,8 @@ public final class ModDirectionHud {
134134
*
135135
* @since 1.0.0
136136
*/
137-
public static final SimpleOption<Boolean> SHOW_MARKER = SimpleOption.<Boolean>builder()
138-
.node("direction-hud", "show-marker").type(TypeToken.get(Boolean.class))
137+
public static final SimpleOption<Boolean> SHOW_MARKER_VALUE = SimpleOption.<Boolean>builder()
138+
.node("direction-hud", "show-marker-value").type(TypeToken.get(Boolean.class))
139139
.notifyClient()
140140
.build();
141141

@@ -144,8 +144,19 @@ public final class ModDirectionHud {
144144
*
145145
* @since 1.0.0
146146
*/
147-
public static final SimpleOption<Boolean> SHOW_MARKER_VALUE = SimpleOption.<Boolean>builder()
148-
.node("direction-hud", "show-marker-value").type(TypeToken.get(Boolean.class))
147+
public static final SimpleOption<Boolean> USE_LEGACY_STYLE = SimpleOption.<Boolean>builder()
148+
.node("direction-hud", "use-legacy-style").type(TypeToken.get(Boolean.class))
149+
.notifyClient()
150+
.build();
151+
152+
/**
153+
* Choose whether to show the Direction HUD when TAB is open.
154+
*
155+
* @since %release_version%
156+
*/
157+
public static final SimpleOption<Boolean> SHOW_WITH_TAB = SimpleOption.<Boolean>builder()
158+
.comment("Choose whether to show the Direction HUD when TAB is open.")
159+
.node("direction-hud", "show-with-tab").type(TypeToken.get(Boolean.class))
149160
.notifyClient()
150161
.build();
151162

api/src/main/java/com/lunarclient/apollo/mods/impl/ModPotionEffects.java

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,87 @@ public final class ModPotionEffects {
9696
.notifyClient()
9797
.build();
9898

99+
/**
100+
* No documentation available.
101+
*
102+
* @since %release_version%
103+
*/
104+
public static final SimpleOption<Boolean> BACKGROUND = SimpleOption.<Boolean>builder()
105+
.node("potion-effects", "background").type(TypeToken.get(Boolean.class))
106+
.notifyClient()
107+
.build();
108+
109+
/**
110+
* No documentation available.
111+
*
112+
* @since %release_version%
113+
*/
114+
public static final SimpleOption<Boolean> MINIMAL_MODE = SimpleOption.<Boolean>builder()
115+
.node("potion-effects", "minimal-mode").type(TypeToken.get(Boolean.class))
116+
.notifyClient()
117+
.build();
118+
119+
/**
120+
* No documentation available.
121+
*
122+
* @since %release_version%
123+
*/
124+
public static final SimpleOption<Boolean> MINIMAL_MODE_HORIZONTAL = SimpleOption.<Boolean>builder()
125+
.node("potion-effects", "minimal-mode-horizontal").type(TypeToken.get(Boolean.class))
126+
.notifyClient()
127+
.build();
128+
129+
/**
130+
* No documentation available.
131+
*
132+
* @since %release_version%
133+
*/
134+
public static final SimpleOption<Boolean> BORDER = SimpleOption.<Boolean>builder()
135+
.node("potion-effects", "border").type(TypeToken.get(Boolean.class))
136+
.notifyClient()
137+
.build();
138+
139+
/**
140+
* No documentation available.
141+
*
142+
* @since %release_version%
143+
*/
144+
public static final NumberOption<Float> BORDER_THICKNESS = NumberOption.<Float>number()
145+
.node("potion-effects", "border-thickness").type(TypeToken.get(Float.class))
146+
.min(0.5F).max(3.0F)
147+
.notifyClient()
148+
.build();
149+
150+
/**
151+
* No documentation available.
152+
*
153+
* @since %release_version%
154+
*/
155+
public static final SimpleOption<Boolean> FORMATTED_DURATIONS = SimpleOption.<Boolean>builder()
156+
.node("potion-effects", "formatted-durations").type(TypeToken.get(Boolean.class))
157+
.notifyClient()
158+
.build();
159+
160+
/**
161+
* No documentation available.
162+
*
163+
* @since %release_version%
164+
*/
165+
public static final SimpleOption<Boolean> UPPERCASE_POTION_NAMES = SimpleOption.<Boolean>builder()
166+
.node("potion-effects", "uppercase-potion-names").type(TypeToken.get(Boolean.class))
167+
.notifyClient()
168+
.build();
169+
170+
/**
171+
* No documentation available.
172+
*
173+
* @since %release_version%
174+
*/
175+
public static final SimpleOption<Boolean> REVERSED_TEXT = SimpleOption.<Boolean>builder()
176+
.node("potion-effects", "reversed-text").type(TypeToken.get(Boolean.class))
177+
.notifyClient()
178+
.build();
179+
99180
/**
100181
* No documentation available.
101182
*
@@ -127,6 +208,26 @@ public final class ModPotionEffects {
127208
.notifyClient()
128209
.build();
129210

211+
/**
212+
* No documentation available.
213+
*
214+
* @since %release_version%
215+
*/
216+
public static final SimpleOption<Color> BACKGROUND_COLOR = SimpleOption.<Color>builder()
217+
.node("potion-effects", "background-color").type(TypeToken.get(Color.class))
218+
.notifyClient()
219+
.build();
220+
221+
/**
222+
* No documentation available.
223+
*
224+
* @since %release_version%
225+
*/
226+
public static final SimpleOption<Color> BORDER_COLOR = SimpleOption.<Color>builder()
227+
.node("potion-effects", "border-color").type(TypeToken.get(Color.class))
228+
.notifyClient()
229+
.build();
230+
130231
/**
131232
* No documentation available.
132233
*

api/src/main/java/com/lunarclient/apollo/mods/impl/ModRadio.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ public final class ModRadio {
5050
*
5151
* @since 1.1.7
5252
*/
53-
public static final NumberOption<Float> SCALE = NumberOption.<Float>number()
54-
.node("radio", "scale").type(TypeToken.get(Float.class))
55-
.min(0.5F).max(1.5F)
53+
public static final NumberOption<Integer> VOLUME = NumberOption.<Integer>number()
54+
.node("radio", "volume").type(TypeToken.get(Integer.class))
55+
.min(0).max(100)
5656
.notifyClient()
5757
.build();
5858

@@ -61,9 +61,8 @@ public final class ModRadio {
6161
*
6262
* @since 1.1.7
6363
*/
64-
public static final NumberOption<Integer> VOLUME = NumberOption.<Integer>number()
65-
.node("radio", "volume").type(TypeToken.get(Integer.class))
66-
.min(0).max(100)
64+
public static final SimpleOption<Boolean> MUTE_RADIO = SimpleOption.<Boolean>builder()
65+
.node("radio", "mute-radio").type(TypeToken.get(Boolean.class))
6766
.notifyClient()
6867
.build();
6968

@@ -72,8 +71,9 @@ public final class ModRadio {
7271
*
7372
* @since 1.1.7
7473
*/
75-
public static final SimpleOption<Boolean> MUTE_RADIO = SimpleOption.<Boolean>builder()
76-
.node("radio", "mute-radio").type(TypeToken.get(Boolean.class))
74+
public static final NumberOption<Float> SCALE = NumberOption.<Float>number()
75+
.node("radio", "scale").type(TypeToken.get(Float.class))
76+
.min(0.5F).max(1.5F)
7777
.notifyClient()
7878
.build();
7979

api/src/main/java/com/lunarclient/apollo/mods/impl/ModWaypoints.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,28 @@ public final class ModWaypoints {
5454
.notifyClient()
5555
.build();
5656

57+
/**
58+
* No documentation available.
59+
*
60+
* @since %release_version%
61+
*/
62+
public static final SimpleOption<Boolean> LIMIT_DEATH_WAYPOINTS = SimpleOption.<Boolean>builder()
63+
.node("waypoints", "limit-death-waypoints").type(TypeToken.get(Boolean.class))
64+
.notifyClient()
65+
.build();
66+
67+
/**
68+
* Maximum amount of Death Waypoints you will see at one time.
69+
*
70+
* @since %release_version%
71+
*/
72+
public static final NumberOption<Integer> MAX_DEATH_WAYPOINTS = NumberOption.<Integer>number()
73+
.comment("Maximum amount of Death Waypoints you will see at one time")
74+
.node("waypoints", "max-death-waypoints").type(TypeToken.get(Integer.class))
75+
.min(1).max(20)
76+
.notifyClient()
77+
.build();
78+
5779
/**
5880
* No documentation available.
5981
*

docs/developers/mods/autotexthotkey.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,10 @@ public void toggleAutoTextHotKeyExample(Player viewer, boolean value) {
2121
- Type: `Boolean`
2222
- Default: `false`
2323

24+
- __`NOTIFY_ON_BLOCKED_INPUT`__
25+
- Displays a notification when an input is blocked by the server
26+
- Config Key: `notify-on-blocked-input`
27+
- Values
28+
- Type: `Boolean`
29+
- Default: `true`
30+

docs/developers/mods/directionhud.mdx

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,6 @@ public void toggleDirectionHUDExample(Player viewer, boolean value) {
7070
- Minimum: `0.5F`
7171
- Maximum: `3.0F`
7272

73-
- __`USE_LEGACY_STYLE`__
74-
- Config Key: `use-legacy-style`
75-
- Values
76-
- Type: `Boolean`
77-
- Default: `false`
78-
7973
- __`SHOW_MARKER`__
8074
- Config Key: `show-marker`
8175
- Values
@@ -88,6 +82,19 @@ public void toggleDirectionHUDExample(Player viewer, boolean value) {
8882
- Type: `Boolean`
8983
- Default: `true`
9084

85+
- __`USE_LEGACY_STYLE`__
86+
- Config Key: `use-legacy-style`
87+
- Values
88+
- Type: `Boolean`
89+
- Default: `false`
90+
91+
- __`SHOW_WITH_TAB`__
92+
- Choose whether to show the Direction HUD when TAB is open.
93+
- Config Key: `show-with-tab`
94+
- Values
95+
- Type: `Boolean`
96+
- Default: `false`
97+
9198
- __`BACKGROUND_COLOR`__
9299
- Config Key: `background-color`
93100
- Values

docs/developers/mods/potioneffects.mdx

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,56 @@ public void togglePotionEffectsExample(Player viewer, boolean value) {
5353
- Type: `Boolean`
5454
- Default: `true`
5555

56+
- __`BACKGROUND`__
57+
- Config Key: `background`
58+
- Values
59+
- Type: `Boolean`
60+
- Default: `true`
61+
62+
- __`MINIMAL_MODE`__
63+
- Config Key: `minimal-mode`
64+
- Values
65+
- Type: `Boolean`
66+
- Default: `false`
67+
68+
- __`MINIMAL_MODE_HORIZONTAL`__
69+
- Config Key: `minimal-mode-horizontal`
70+
- Values
71+
- Type: `Boolean`
72+
- Default: `false`
73+
74+
- __`BORDER`__
75+
- Config Key: `border`
76+
- Values
77+
- Type: `Boolean`
78+
- Default: `false`
79+
80+
- __`BORDER_THICKNESS`__
81+
- Config Key: `border-thickness`
82+
- Values
83+
- Type: `Float`
84+
- Default: `0.5F`
85+
- Minimum: `0.5F`
86+
- Maximum: `3.0F`
87+
88+
- __`FORMATTED_DURATIONS`__
89+
- Config Key: `formatted-durations`
90+
- Values
91+
- Type: `Boolean`
92+
- Default: `false`
93+
94+
- __`UPPERCASE_POTION_NAMES`__
95+
- Config Key: `uppercase-potion-names`
96+
- Values
97+
- Type: `Boolean`
98+
- Default: `false`
99+
100+
- __`REVERSED_TEXT`__
101+
- Config Key: `reversed-text`
102+
- Values
103+
- Type: `Boolean`
104+
- Default: `false`
105+
56106
- __`HIDE_MODERN_ICONS`__
57107
- Config Key: `hide-modern-icons`
58108
- Values
@@ -73,6 +123,18 @@ public void togglePotionEffectsExample(Player viewer, boolean value) {
73123
- Minimum: `2`
74124
- Maximum: `20`
75125

126+
- __`BACKGROUND_COLOR`__
127+
- Config Key: `background-color`
128+
- Values
129+
- Type: `String`
130+
- Default: `#6F000000`
131+
132+
- __`BORDER_COLOR`__
133+
- Config Key: `border-color`
134+
- Values
135+
- Type: `String`
136+
- Default: `#9F000000`
137+
76138
- __`COLOR_NAME_BASED_ON_EFFECT`__
77139
- Config Key: `color-name-based-on-effect`
78140
- Values

docs/developers/mods/radio.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@ public void toggleRadioExample(Player viewer, boolean value) {
2121
- Type: `Boolean`
2222
- Default: `true`
2323

24-
- __`SCALE`__
25-
- Config Key: `scale`
26-
- Values
27-
- Type: `Float`
28-
- Default: `1.0F`
29-
- Minimum: `0.5F`
30-
- Maximum: `1.5F`
31-
3224
- __`VOLUME`__
3325
- Config Key: `volume`
3426
- Values
@@ -43,6 +35,14 @@ public void toggleRadioExample(Player viewer, boolean value) {
4335
- Type: `Boolean`
4436
- Default: `false`
4537

38+
- __`SCALE`__
39+
- Config Key: `scale`
40+
- Values
41+
- Type: `Float`
42+
- Default: `1.0F`
43+
- Minimum: `0.5F`
44+
- Maximum: `1.5F`
45+
4646
- __`BACKGROUND`__
4747
- Config Key: `background`
4848
- Values

0 commit comments

Comments
 (0)