From a3a67b3880161906fd7bf003d2779a73469426cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Bu=C4=8Dari=C4=87?= Date: Tue, 9 Jul 2024 16:04:36 +0200 Subject: [PATCH] Sync LunarClient Mods & Options (#158) Co-authored-by: LunarClient Bot --- .../lunarclient/apollo/mods/impl/ModChat.java | 92 +++++++++---------- .../apollo/mods/impl/ModHypixelMod.java | 8 +- docs/developers/mods/chat.mdx | 64 ++++++------- docs/developers/mods/hypixelmod.mdx | 12 +-- 4 files changed, 88 insertions(+), 88 deletions(-) diff --git a/api/src/main/java/com/lunarclient/apollo/mods/impl/ModChat.java b/api/src/main/java/com/lunarclient/apollo/mods/impl/ModChat.java index 4295388c..0c464e31 100644 --- a/api/src/main/java/com/lunarclient/apollo/mods/impl/ModChat.java +++ b/api/src/main/java/com/lunarclient/apollo/mods/impl/ModChat.java @@ -118,6 +118,52 @@ public final class ModChat { .notifyClient() .build(); + /** + * Copies the hovered chat message when holding the keybind and clicking. + * + * @since 1.0.0 + */ + public static final SimpleOption COPY_CHAT = SimpleOption.builder() + .comment("Copies the hovered chat message when holding the keybind and clicking.") + .node("chat", "copy-chat").type(TypeToken.get(Boolean.class)) + .notifyClient() + .build(); + + /** + * Displays a preview of an image when hovering over it. + * + * @since 1.1.3 + */ + public static final SimpleOption HOVER_IMAGE_PREVIEW = SimpleOption.builder() + .comment("Displays a preview of an image when hovering over it.") + .node("chat", "hover-image-preview").type(TypeToken.get(Boolean.class)) + .notifyClient() + .build(); + + /** + * The minimum size for an image to be displayed, as a percentage of your screen. + * + * @since 1.1.3 + */ + public static final NumberOption MIN_IMAGE_SIZE = NumberOption.number() + .comment("The minimum size for an image to be displayed, as a percentage of your screen.") + .node("chat", "min-image-size").type(TypeToken.get(Double.class)) + .min(0.0D).max(100.0D) + .notifyClient() + .build(); + + /** + * The maximum size for an image to be displayed, as a percentage of your screen. + * + * @since 1.1.3 + */ + public static final NumberOption MAX_IMAGE_SIZE = NumberOption.number() + .comment("The maximum size for an image to be displayed, as a percentage of your screen.") + .node("chat", "max-image-size").type(TypeToken.get(Double.class)) + .min(0.0D).max(100.0D) + .notifyClient() + .build(); + /** * No documentation available. * @@ -246,52 +292,6 @@ public final class ModChat { .notifyClient() .build(); - /** - * Copies the hovered chat message when holding the keybind and clicking. - * - * @since 1.0.0 - */ - public static final SimpleOption COPY_CHAT = SimpleOption.builder() - .comment("Copies the hovered chat message when holding the keybind and clicking.") - .node("chat", "copy-chat").type(TypeToken.get(Boolean.class)) - .notifyClient() - .build(); - - /** - * Displays a preview of an image when hovering over it. - * - * @since 1.1.3 - */ - public static final SimpleOption HOVER_IMAGE_PREVIEW = SimpleOption.builder() - .comment("Displays a preview of an image when hovering over it.") - .node("chat", "hover-image-preview").type(TypeToken.get(Boolean.class)) - .notifyClient() - .build(); - - /** - * The minimum size for an image to be displayed, as a percentage of your screen. - * - * @since 1.1.3 - */ - public static final NumberOption MIN_IMAGE_SIZE = NumberOption.number() - .comment("The minimum size for an image to be displayed, as a percentage of your screen.") - .node("chat", "min-image-size").type(TypeToken.get(Double.class)) - .min(0.0D).max(100.0D) - .notifyClient() - .build(); - - /** - * The maximum size for an image to be displayed, as a percentage of your screen. - * - * @since 1.1.3 - */ - public static final NumberOption MAX_IMAGE_SIZE = NumberOption.number() - .comment("The maximum size for an image to be displayed, as a percentage of your screen.") - .node("chat", "max-image-size").type(TypeToken.get(Double.class)) - .min(0.0D).max(100.0D) - .notifyClient() - .build(); - private ModChat() { } diff --git a/api/src/main/java/com/lunarclient/apollo/mods/impl/ModHypixelMod.java b/api/src/main/java/com/lunarclient/apollo/mods/impl/ModHypixelMod.java index b09e3186..f3aeb1ea 100644 --- a/api/src/main/java/com/lunarclient/apollo/mods/impl/ModHypixelMod.java +++ b/api/src/main/java/com/lunarclient/apollo/mods/impl/ModHypixelMod.java @@ -129,8 +129,8 @@ public final class ModHypixelMod { * * @since 1.0.0 */ - public static final SimpleOption LEVEL_HEAD = SimpleOption.builder() - .node("hypixel-mod", "level-head").type(TypeToken.get(Boolean.class)) + public static final SimpleOption HYPIXEL_AUTOCOMPLETE = SimpleOption.builder() + .node("hypixel-mod", "hypixel-autocomplete").type(TypeToken.get(Boolean.class)) .notifyClient() .build(); @@ -139,8 +139,8 @@ public final class ModHypixelMod { * * @since 1.0.0 */ - public static final SimpleOption HYPIXEL_AUTOCOMPLETE = SimpleOption.builder() - .node("hypixel-mod", "hypixel-autocomplete").type(TypeToken.get(Boolean.class)) + public static final SimpleOption LEVEL_HEAD = SimpleOption.builder() + .node("hypixel-mod", "level-head").type(TypeToken.get(Boolean.class)) .notifyClient() .build(); diff --git a/docs/developers/mods/chat.mdx b/docs/developers/mods/chat.mdx index c0628090..4008e9d6 100644 --- a/docs/developers/mods/chat.mdx +++ b/docs/developers/mods/chat.mdx @@ -67,6 +67,38 @@ public void toggleChatExample(Player viewer, boolean value) { - Type: `Boolean` - Default: `true` +- __`COPY_CHAT`__ + - Copies the hovered chat message when holding the keybind and clicking. + - Config Key: `copy-chat` + - Values + - Type: `Boolean` + - Default: `false` + +- __`HOVER_IMAGE_PREVIEW`__ + - Displays a preview of an image when hovering over it. + - Config Key: `hover-image-preview` + - Values + - Type: `Boolean` + - Default: `false` + +- __`MIN_IMAGE_SIZE`__ + - The minimum size for an image to be displayed, as a percentage of your screen. + - Config Key: `min-image-size` + - Values + - Type: `Double` + - Default: `0.0D` + - Minimum: `0.0D` + - Maximum: `100.0D` + +- __`MAX_IMAGE_SIZE`__ + - The maximum size for an image to be displayed, as a percentage of your screen. + - Config Key: `max-image-size` + - Values + - Type: `Double` + - Default: `100.0D` + - Minimum: `0.0D` + - Maximum: `100.0D` + - __`SMOOTH_CHAT`__ - Config Key: `smooth-chat` - Values @@ -151,35 +183,3 @@ public void toggleChatExample(Player viewer, boolean value) { - Type: `Boolean` - Default: `true` -- __`COPY_CHAT`__ - - Copies the hovered chat message when holding the keybind and clicking. - - Config Key: `copy-chat` - - Values - - Type: `Boolean` - - Default: `false` - -- __`HOVER_IMAGE_PREVIEW`__ - - Displays a preview of an image when hovering over it. - - Config Key: `hover-image-preview` - - Values - - Type: `Boolean` - - Default: `false` - -- __`MIN_IMAGE_SIZE`__ - - The minimum size for an image to be displayed, as a percentage of your screen. - - Config Key: `min-image-size` - - Values - - Type: `Double` - - Default: `0.0D` - - Minimum: `0.0D` - - Maximum: `100.0D` - -- __`MAX_IMAGE_SIZE`__ - - The maximum size for an image to be displayed, as a percentage of your screen. - - Config Key: `max-image-size` - - Values - - Type: `Double` - - Default: `100.0D` - - Minimum: `0.0D` - - Maximum: `100.0D` - diff --git a/docs/developers/mods/hypixelmod.mdx b/docs/developers/mods/hypixelmod.mdx index bdd246ac..fff8aa84 100644 --- a/docs/developers/mods/hypixelmod.mdx +++ b/docs/developers/mods/hypixelmod.mdx @@ -69,18 +69,18 @@ public void toggleHypixelModsExample(Player viewer, boolean value) { - Type: `Boolean` - Default: `false` -- __`LEVEL_HEAD`__ - - Config Key: `level-head` - - Values - - Type: `Boolean` - - Default: `false` - - __`HYPIXEL_AUTOCOMPLETE`__ - Config Key: `hypixel-autocomplete` - Values - Type: `Boolean` - Default: `true` +- __`LEVEL_HEAD`__ + - Config Key: `level-head` + - Values + - Type: `Boolean` + - Default: `false` + - __`LEVEL_COLOR`__ - Config Key: `level-color` - Values