Skip to content

Commit

Permalink
Sync LunarClient Mods & Options
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarClientBot committed Oct 9, 2024
1 parent 395dab3 commit 2d8e11d
Show file tree
Hide file tree
Showing 54 changed files with 1,035 additions and 692 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,6 @@ public final class ModBlockOutline {
.notifyClient()
.build();

/**
* If the exact block bounding box should be used, this comes at a slight performance cost.
*
* @since 1.0.9
*/
public static final SimpleOption<Boolean> BLOCK_OUTLINE_ACCURATE = SimpleOption.<Boolean>builder()
.comment("If the exact block bounding box should be used, this comes at a slight performance cost")
.node("block-outline", "block-outline-accurate").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

/**
* If the outline colors should travel through the block.
*
Expand Down Expand Up @@ -175,17 +164,6 @@ public final class ModBlockOutline {
.notifyClient()
.build();

/**
* If the exact block bounding box should be used, this comes at a slight performance cost.
*
* @since 1.0.9
*/
public static final SimpleOption<Boolean> BLOCK_OVERLAY_ACCURATE = SimpleOption.<Boolean>builder()
.comment("If the exact block bounding box should be used, this comes at a slight performance cost")
.node("block-outline", "block-overlay-accurate").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

/**
* If the overlay colors should travel through the block.
*
Expand Down Expand Up @@ -230,11 +208,36 @@ public final class ModBlockOutline {
.notifyClient()
.build();

/**
* If the exact block bounding box should be used, this comes at a slight performance cost.
*
* @since 1.0.9
*/
@Deprecated
public static final SimpleOption<Boolean> BLOCK_OUTLINE_ACCURATE = SimpleOption.<Boolean>builder()
.comment("If the exact block bounding box should be used, this comes at a slight performance cost")
.node("block-outline", "block-outline-accurate").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

/**
* If the exact block bounding box should be used, this comes at a slight performance cost.
*
* @since 1.0.9
*/
@Deprecated
public static final SimpleOption<Boolean> BLOCK_OVERLAY_ACCURATE = SimpleOption.<Boolean>builder()
.comment("If the exact block bounding box should be used, this comes at a slight performance cost")
.node("block-outline", "block-overlay-accurate").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

/**
* If blocks that connect together should share an outline.
*
* @since 1.0.9
*/
@Deprecated
public static final SimpleOption<Boolean> BLOCK_OUTLINE_MULTI_BLOCK = SimpleOption.<Boolean>builder()
.comment("If blocks that connect together should share an outline")
.node("block-outline", "block-outline-multi-block").type(TypeToken.get(Boolean.class))
Expand All @@ -246,6 +249,7 @@ public final class ModBlockOutline {
*
* @since 1.0.9
*/
@Deprecated
public static final SimpleOption<Boolean> SHOW_IN_SPECTATOR = SimpleOption.<Boolean>builder()
.comment("If outlines should be visible in spectator mode")
.node("block-outline", "show-in-spectator").type(TypeToken.get(Boolean.class))
Expand Down
11 changes: 11 additions & 0 deletions api/src/main/java/com/lunarclient/apollo/mods/impl/ModChat.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,17 @@ public final class ModChat {
.notifyClient()
.build();

/**
* Requires the ping message to exactly contain your name.For example, if your name is Notch, this will ping on Notch but not Notch123.
*
* @since %release_version%
*/
public static final SimpleOption<Boolean> CHAT_PING_EXACT_MATCH = SimpleOption.<Boolean>builder()
.comment("Requires the ping message to exactly contain your name.For example, if your name is Notch, this will ping on Notch but not Notch123.")
.node("chat", "chat-ping-exact-match").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

/**
* Copies the hovered chat message when holding the keybind and clicking.
*
Expand Down
49 changes: 35 additions & 14 deletions api/src/main/java/com/lunarclient/apollo/mods/impl/ModClock.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,26 @@ public final class ModClock {
.notifyClient()
.build();

/**
* No documentation available.
*
* @since 1.0.0
*/
public static final SimpleOption<Boolean> BRACKETS = SimpleOption.<Boolean>builder()
.node("clock", "brackets").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

/**
* No documentation available.
*
* @since %release_version%
*/
public static final SimpleOption<Color> BRACKET_COLOR = SimpleOption.<Color>builder()
.node("clock", "bracket-color").type(TypeToken.get(Color.class))
.notifyClient()
.build();

/**
* No documentation available.
*
Expand All @@ -88,13 +108,13 @@ public final class ModClock {
.build();

/**
* No documentation available.
* If this is disabled the background will change size with the text.
*
* @since 1.0.0
* @since %release_version%
*/
public static final NumberOption<Integer> BACKGROUND_WIDTH = NumberOption.<Integer>number()
.node("clock", "background-width").type(TypeToken.get(Integer.class))
.min(46).max(62)
public static final SimpleOption<Boolean> STATIC_BACKGROUND_HEIGHT = SimpleOption.<Boolean>builder()
.comment("If this is disabled the background will change size with the text.")
.node("clock", "static-background-height").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

Expand All @@ -103,9 +123,9 @@ public final class ModClock {
*
* @since 1.0.0
*/
public static final NumberOption<Integer> BACKGROUND_HEIGHT = NumberOption.<Integer>number()
.node("clock", "background-height").type(TypeToken.get(Integer.class))
.min(10).max(22)
public static final NumberOption<Integer> BACKGROUND_WIDTH = NumberOption.<Integer>number()
.node("clock", "background-width").type(TypeToken.get(Integer.class))
.min(46).max(62)
.notifyClient()
.build();

Expand All @@ -114,8 +134,9 @@ public final class ModClock {
*
* @since 1.0.0
*/
public static final SimpleOption<Boolean> BRACKETS = SimpleOption.<Boolean>builder()
.node("clock", "brackets").type(TypeToken.get(Boolean.class))
public static final NumberOption<Integer> BACKGROUND_HEIGHT = NumberOption.<Integer>number()
.node("clock", "background-height").type(TypeToken.get(Integer.class))
.min(10).max(22)
.notifyClient()
.build();

Expand Down Expand Up @@ -145,8 +166,8 @@ public final class ModClock {
*
* @since 1.0.0
*/
public static final SimpleOption<Color> TEXT_COLOR = SimpleOption.<Color>builder()
.node("clock", "text-color").type(TypeToken.get(Color.class))
public static final SimpleOption<Color> BORDER_COLOR = SimpleOption.<Color>builder()
.node("clock", "border-color").type(TypeToken.get(Color.class))
.notifyClient()
.build();

Expand All @@ -165,8 +186,8 @@ public final class ModClock {
*
* @since 1.0.0
*/
public static final SimpleOption<Color> BORDER_COLOR = SimpleOption.<Color>builder()
.node("clock", "border-color").type(TypeToken.get(Color.class))
public static final SimpleOption<Color> TEXT_COLOR = SimpleOption.<Color>builder()
.node("clock", "text-color").type(TypeToken.get(Color.class))
.notifyClient()
.build();

Expand Down
49 changes: 35 additions & 14 deletions api/src/main/java/com/lunarclient/apollo/mods/impl/ModCombo.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,26 @@ public final class ModCombo {
.notifyClient()
.build();

/**
* No documentation available.
*
* @since 1.0.0
*/
public static final SimpleOption<Boolean> BRACKETS = SimpleOption.<Boolean>builder()
.node("combo", "brackets").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

/**
* No documentation available.
*
* @since %release_version%
*/
public static final SimpleOption<Color> BRACKET_COLOR = SimpleOption.<Color>builder()
.node("combo", "bracket-color").type(TypeToken.get(Color.class))
.notifyClient()
.build();

/**
* No documentation available.
*
Expand All @@ -88,13 +108,13 @@ public final class ModCombo {
.build();

/**
* No documentation available.
* If this is disabled the background will change size with the text.
*
* @since 1.0.0
* @since %release_version%
*/
public static final NumberOption<Integer> BACKGROUND_WIDTH = NumberOption.<Integer>number()
.node("combo", "background-width").type(TypeToken.get(Integer.class))
.min(46).max(62)
public static final SimpleOption<Boolean> STATIC_BACKGROUND_HEIGHT = SimpleOption.<Boolean>builder()
.comment("If this is disabled the background will change size with the text.")
.node("combo", "static-background-height").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

Expand All @@ -103,9 +123,9 @@ public final class ModCombo {
*
* @since 1.0.0
*/
public static final NumberOption<Integer> BACKGROUND_HEIGHT = NumberOption.<Integer>number()
.node("combo", "background-height").type(TypeToken.get(Integer.class))
.min(10).max(22)
public static final NumberOption<Integer> BACKGROUND_WIDTH = NumberOption.<Integer>number()
.node("combo", "background-width").type(TypeToken.get(Integer.class))
.min(46).max(62)
.notifyClient()
.build();

Expand All @@ -114,8 +134,9 @@ public final class ModCombo {
*
* @since 1.0.0
*/
public static final SimpleOption<Boolean> BRACKETS = SimpleOption.<Boolean>builder()
.node("combo", "brackets").type(TypeToken.get(Boolean.class))
public static final NumberOption<Integer> BACKGROUND_HEIGHT = NumberOption.<Integer>number()
.node("combo", "background-height").type(TypeToken.get(Integer.class))
.min(10).max(22)
.notifyClient()
.build();

Expand Down Expand Up @@ -145,8 +166,8 @@ public final class ModCombo {
*
* @since 1.0.0
*/
public static final SimpleOption<Color> TEXT_COLOR = SimpleOption.<Color>builder()
.node("combo", "text-color").type(TypeToken.get(Color.class))
public static final SimpleOption<Color> BORDER_COLOR = SimpleOption.<Color>builder()
.node("combo", "border-color").type(TypeToken.get(Color.class))
.notifyClient()
.build();

Expand All @@ -165,8 +186,8 @@ public final class ModCombo {
*
* @since 1.0.0
*/
public static final SimpleOption<Color> BORDER_COLOR = SimpleOption.<Color>builder()
.node("combo", "border-color").type(TypeToken.get(Color.class))
public static final SimpleOption<Color> TEXT_COLOR = SimpleOption.<Color>builder()
.node("combo", "text-color").type(TypeToken.get(Color.class))
.notifyClient()
.build();

Expand Down
57 changes: 39 additions & 18 deletions api/src/main/java/com/lunarclient/apollo/mods/impl/ModCps.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,26 @@ public final class ModCps {
.notifyClient()
.build();

/**
* No documentation available.
*
* @since 1.0.0
*/
public static final SimpleOption<Boolean> BRACKETS = SimpleOption.<Boolean>builder()
.node("cps", "brackets").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

/**
* No documentation available.
*
* @since %release_version%
*/
public static final SimpleOption<Color> BRACKET_COLOR = SimpleOption.<Color>builder()
.node("cps", "bracket-color").type(TypeToken.get(Color.class))
.notifyClient()
.build();

/**
* No documentation available.
*
Expand All @@ -88,13 +108,13 @@ public final class ModCps {
.build();

/**
* No documentation available.
* If this is disabled the background will change size with the text.
*
* @since 1.0.0
* @since %release_version%
*/
public static final NumberOption<Integer> BACKGROUND_WIDTH = NumberOption.<Integer>number()
.node("cps", "background-width").type(TypeToken.get(Integer.class))
.min(40).max(62)
public static final SimpleOption<Boolean> STATIC_BACKGROUND_HEIGHT = SimpleOption.<Boolean>builder()
.comment("If this is disabled the background will change size with the text.")
.node("cps", "static-background-height").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

Expand All @@ -103,9 +123,9 @@ public final class ModCps {
*
* @since 1.0.0
*/
public static final NumberOption<Integer> BACKGROUND_HEIGHT = NumberOption.<Integer>number()
.node("cps", "background-height").type(TypeToken.get(Integer.class))
.min(10).max(22)
public static final NumberOption<Integer> BACKGROUND_WIDTH = NumberOption.<Integer>number()
.node("cps", "background-width").type(TypeToken.get(Integer.class))
.min(40).max(62)
.notifyClient()
.build();

Expand All @@ -114,8 +134,9 @@ public final class ModCps {
*
* @since 1.0.0
*/
public static final SimpleOption<Boolean> BRACKETS = SimpleOption.<Boolean>builder()
.node("cps", "brackets").type(TypeToken.get(Boolean.class))
public static final NumberOption<Integer> BACKGROUND_HEIGHT = NumberOption.<Integer>number()
.node("cps", "background-height").type(TypeToken.get(Integer.class))
.min(10).max(22)
.notifyClient()
.build();

Expand Down Expand Up @@ -145,8 +166,8 @@ public final class ModCps {
*
* @since 1.0.0
*/
public static final SimpleOption<Color> TEXT_COLOR = SimpleOption.<Color>builder()
.node("cps", "text-color").type(TypeToken.get(Color.class))
public static final SimpleOption<Color> BORDER_COLOR = SimpleOption.<Color>builder()
.node("cps", "border-color").type(TypeToken.get(Color.class))
.notifyClient()
.build();

Expand All @@ -165,8 +186,8 @@ public final class ModCps {
*
* @since 1.0.0
*/
public static final SimpleOption<Color> BORDER_COLOR = SimpleOption.<Color>builder()
.node("cps", "border-color").type(TypeToken.get(Color.class))
public static final SimpleOption<Color> TEXT_COLOR = SimpleOption.<Color>builder()
.node("cps", "text-color").type(TypeToken.get(Color.class))
.notifyClient()
.build();

Expand All @@ -185,8 +206,8 @@ public final class ModCps {
*
* @since 1.0.0
*/
public static final SimpleOption<Boolean> SHOW_CPSTEXT = SimpleOption.<Boolean>builder()
.node("cps", "show-c-p-s-text").type(TypeToken.get(Boolean.class))
public static final SimpleOption<Color> LINE_COLOR = SimpleOption.<Color>builder()
.node("cps", "line-color").type(TypeToken.get(Color.class))
.notifyClient()
.build();

Expand All @@ -195,8 +216,8 @@ public final class ModCps {
*
* @since 1.0.0
*/
public static final SimpleOption<Color> LINE_COLOR = SimpleOption.<Color>builder()
.node("cps", "line-color").type(TypeToken.get(Color.class))
public static final SimpleOption<Boolean> SHOW_CPSTEXT = SimpleOption.<Boolean>builder()
.node("cps", "show-c-p-s-text").type(TypeToken.get(Boolean.class))
.notifyClient()
.build();

Expand Down
Loading

1 comment on commit 2d8e11d

@LunarClientBot
Copy link
Collaborator Author

@LunarClientBot LunarClientBot commented on 2d8e11d Oct 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📄 Documentation Deployment

Status:✅ Completed
Environment:preview
URL:https://7bbd889a.lunarclient-dev.pages.dev

Please sign in to comment.