Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .checkstyle/suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE suppressions PUBLIC "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" "http://checkstyle.org/dtds/suppressions_1_2.dtd">
<suppressions>
<!-- don't require javadocs on platform modules -->
<suppress files="example[\\/](bukkit|minestom)[\\/](api|json|proto|common)[\\/]src[\\/]main[\\/]java[\\/].*" checks="(FilteringWriteTag|MissingJavadoc.*)"/>
<suppress files="example[\\/](bukkit|minestom)[\\/](api|json|proto|common|nms)[\\/]src[\\/]main[\\/]java[\\/].*" checks="(FilteringWriteTag|MissingJavadoc.*)"/>

<!-- ignore illegal import in loader -->
<suppress files="extra[\\/]loader[\\/]src[\\/]main[\\/]java[\\/].*" checks="(IllegalImport)"/>
Expand Down
6 changes: 3 additions & 3 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ Our **Lightweight integration** allows you to use Apollo features **without runn
This is useful for developers who want Apollo functionality but prefer a more minimal approach.

There are two supported methods:
- [Lightweight JSON](https://lunarclient.dev/apollo/developers/lightweight/json/getting-started)
- [Lightweight Protobuf](https://lunarclient.dev/apollo/developers/lightweight/protobuf/getting-started)
- [Lightweight JSON](https://lunarclient.dev/apollo/developers/lightweight/json)
- [Lightweight Protobuf](https://lunarclient.dev/apollo/developers/lightweight/protobuf)

Both approaches achieve the same goal, but with different trade-offs in terms of **complexity and flexibility**.

Read the [Lightweight introduction](https://lunarclient.dev/apollo/developers/lightweight/introduction) documentation to get started.
Read the [Lightweight introduction](https://lunarclient.dev/apollo/developers/lightweight) documentation to get started.

## Examples

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: 8
java-version: 21

- name: Gradle Build
run: ./gradlew build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
*/
package com.lunarclient.apollo.common.icon;

import com.lunarclient.apollo.common.profile.Profile;
import lombok.Builder;
import lombok.Getter;
import org.jetbrains.annotations.Nullable;

/**
* Represents an item stack icon.
Expand Down Expand Up @@ -59,4 +61,12 @@ public final class ItemStackIcon extends Icon {
*/
int customModelData;

/**
* Returns the icon {@link Profile}.
*
* @return the icon profile
* @since 1.2.6
*/
@Nullable Profile profile;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/*
* 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.common.location;

import lombok.Builder;
import lombok.Getter;

/**
* Represents a HUD element position on the client screen.
*
* @since 1.2.6
*/
@Getter
@Builder
public final class HudPosition {

/**
* Returns the {@code float} X coordinate for this HUD position.
*
* @return the x coordinate
* @since 1.2.6
*/
float x;

/**
* Returns the {@code float} Y coordinate for this HUD position.
*
* @return the y coordinate
* @since 1.2.6
*/
float y;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* 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.common.profile;

import java.util.UUID;
import lombok.Builder;
import lombok.Getter;
import org.jetbrains.annotations.Nullable;

/**
* Represents a profile attached to the {@link com.lunarclient.apollo.common.icon.ItemStackIcon}.
*
* @since 1.2.6
*/
@Getter
@Builder
public final class Profile {

/**
* Returns the profile {@link UUID} id.
*
* @return the profile id
* @since 1.2.6
*/
@Nullable UUID id;

/**
* Returns the profile {@link String} texture.
*
* @return the profile texture
* @since 1.2.6
*/
String texture;

/**
* Returns the profile {@link String} signature.
*
* @return the profile signature
* @since 1.2.6
*/
String signature;

}
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public final class ModArmorstatus {
*/
public static final SimpleOption<Boolean> HIDE_UNBREAKABLE_DURABILITY = SimpleOption.<Boolean>builder()
.node("armorstatus", "hide-unbreakable-durability").type(TypeToken.get(Boolean.class))
.defaultValue(false)
.defaultValue(true)
.notifyClient()
.build();

Expand Down
Loading
Loading