Skip to content

Commit 85242ac

Browse files
Version - 1.2.7 (#282)
* Deploy as `1.2.7-SNAPSHOT` * example(internal): persistent npcs (#280) * Add `PERSIST_COLORS_ON_UNLOAD` to ColoredFireModule (#281) * Add modern Custom Model Data (#284) * fix(velocity): legacy player detection (#285) * Various additions to the Waypoint Module (#283) * Feature - Emotes API (#286) * Emotes API * Update module overview * Sync LunarClient Mods & Options (#288) Co-authored-by: LunarClient Bot <lc-bot@moonsworth.com> * Bump to 1.2.7 (#289) --------- Co-authored-by: LunarClient Bot <lc-bot@moonsworth.com>
1 parent 2a5e492 commit 85242ac

67 files changed

Lines changed: 2391 additions & 1225 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/*
2+
* This file is part of Apollo, licensed under the MIT License.
3+
*
4+
* Copyright (c) 2026 Moonsworth
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*/
24+
package com.lunarclient.apollo.common.icon;
25+
26+
import java.util.Collections;
27+
import java.util.List;
28+
import lombok.Builder;
29+
import lombok.Getter;
30+
31+
/**
32+
* Represents the custom model data attached to an {@link ItemStackIcon}.
33+
*
34+
* <p>Mirrors the Minecraft 1.21.4 {@code CustomModelData} item component, which
35+
* replaced the single integer value with four parallel lists.</p>
36+
*
37+
* @since 1.2.7
38+
*/
39+
@Getter
40+
@Builder
41+
public final class CustomModelData {
42+
43+
/**
44+
* Returns the custom model data {@link Float} values.
45+
*
46+
* @return the custom model data floats
47+
* @since 1.2.7
48+
*/
49+
@Builder.Default
50+
List<Float> floats = Collections.emptyList();
51+
52+
/**
53+
* Returns the custom model data {@link Boolean} flags.
54+
*
55+
* @return the custom model data flags
56+
* @since 1.2.7
57+
*/
58+
@Builder.Default
59+
List<Boolean> flags = Collections.emptyList();
60+
61+
/**
62+
* Returns the custom model data {@link String} values.
63+
*
64+
* @return the custom model data strings
65+
* @since 1.2.7
66+
*/
67+
@Builder.Default
68+
List<String> strings = Collections.emptyList();
69+
70+
/**
71+
* Returns the custom model data color {@link Integer} values.
72+
*
73+
* @return the custom model data colors
74+
* @since 1.2.7
75+
*/
76+
@Builder.Default
77+
List<Integer> colors = Collections.emptyList();
78+
79+
}

api/src/main/java/com/lunarclient/apollo/common/icon/ItemStackIcon.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,20 @@ public final class ItemStackIcon extends Icon {
5757
* Returns the icon {@link Integer} custom model data.
5858
*
5959
* @return the icon custom model data
60+
* @deprecated for removal since 1.2.7, use {@link ItemStackIcon#customModelDataObject} instead.
6061
* @since 1.0.7
6162
*/
63+
@Deprecated
6264
int customModelData;
6365

66+
/**
67+
* Returns the icon {@link CustomModelData} object.
68+
*
69+
* @return the icon custom model data object
70+
* @since 1.2.7
71+
*/
72+
@Nullable CustomModelData customModelDataObject;
73+
6474
/**
6575
* Returns the icon {@link Profile}.
6676
*

api/src/main/java/com/lunarclient/apollo/mods/Mods.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ public final class Mods {
135135
ModOneSevenVisuals.class,
136136
ModFps.class,
137137
ModCps.class,
138-
ModSba.class,
139138
ModToggleSneak.class,
140139
ModZoom.class,
141140
ModHypixelMod.class,
@@ -206,7 +205,6 @@ public final class Mods {
206205
ModChunkBorders.class,
207206
ModSoundChanger.class,
208207
ModWaila.class,
209-
ModNeu.class,
210208
ModHurtCam.class,
211209
ModTierTagger.class,
212210
ModDamageTint.class,
@@ -222,7 +220,9 @@ public final class Mods {
222220
ModInventoryMod.class,
223221
ModF3Display.class,
224222
ModRadio.class,
225-
ModUhcOverlay.class
223+
ModUhcOverlay.class,
224+
ModSba.class,
225+
ModNeu.class
226226
);
227227

228228
private Mods() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public final class ModBossbar {
8787
*/
8888
public static final SimpleOption<Boolean> CUSTOM_BOSS_BAR = SimpleOption.<Boolean>builder()
8989
.node("bossbar", "custom-boss-bar").type(TypeToken.get(Boolean.class))
90-
.defaultValue(true)
90+
.defaultValue(false)
9191
.notifyClient()
9292
.build();
9393

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,19 @@
2727
import io.leangen.geantyref.TypeToken;
2828

2929
/**
30-
* Skyblock Mod made by Moulberry.
30+
* No documentation available.
3131
*
3232
* @since 1.0.0
3333
*/
34+
@Deprecated
3435
public final class ModNeu {
3536

3637
/**
3738
* No documentation available.
3839
*
3940
* @since 1.0.0
4041
*/
42+
@Deprecated
4143
public static final SimpleOption<Boolean> ENABLED = SimpleOption.<Boolean>builder()
4244
.node("neu", "enabled").type(TypeToken.get(Boolean.class))
4345
.defaultValue(true)

0 commit comments

Comments
 (0)