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 Sep 27, 2023
1 parent 17f0cab commit d902db3
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 141 deletions.
4 changes: 1 addition & 3 deletions api/src/main/java/com/lunarclient/apollo/mods/Mods.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
import com.lunarclient.apollo.mods.impl.ModScreenshot;
import com.lunarclient.apollo.mods.impl.ModScrollableTooltips;
import com.lunarclient.apollo.mods.impl.ModServerAddress;
import com.lunarclient.apollo.mods.impl.ModServerTitles;
import com.lunarclient.apollo.mods.impl.ModShinyPots;
import com.lunarclient.apollo.mods.impl.ModSnaplook;
import com.lunarclient.apollo.mods.impl.ModSoundChanger;
Expand Down Expand Up @@ -189,8 +188,7 @@ public final class Mods {
ModWaila.class,
ModNeu.class,
ModHurtCam.class,
ModDamageTint.class,
ModServerTitles.class
ModDamageTint.class
);

private Mods() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
package com.lunarclient.apollo.mods.impl;

import com.lunarclient.apollo.option.NumberOption;
import com.lunarclient.apollo.option.Option;
import com.lunarclient.apollo.option.SimpleOption;
import io.leangen.geantyref.TypeToken;

Expand All @@ -40,7 +39,7 @@ public final class ModLighting {
*
* @since 1.0.0
*/
public static final SimpleOption<Boolean> ENABLED = Option.<Boolean>builder()
public static final SimpleOption<Boolean> ENABLED = SimpleOption.<Boolean>builder()
.node("lighting", "enabled").type(TypeToken.get(Boolean.class))
.defaultValue(true)
.notifyClient()
Expand Down

This file was deleted.

127 changes: 63 additions & 64 deletions docs/developers/mods/_meta.json
Original file line number Diff line number Diff line change
@@ -1,78 +1,77 @@
{
"hurtcam": "HurtCam",
"glintcolorizer": "GlintColorizer",
"itemphysics": "ItemPhysics",
"bossbar": "Bossbar",
"hitcolor": "HitColor",
"momentum": "Momentum",
"cps": "Cps",
"waypoints": "Waypoints",
"nickhider": "NickHider",
"particlechanger": "ParticleChanger",
"menublur": "MenuBlur",
"hypixelbedwars": "HypixelBedwars",
"armorstatus": "Armorstatus",
"titles": "Titles",
"worldeditcui": "WorldeditCui",
"blockoutline": "BlockOutline",
"2ditems": "2dItems",
"waila": "Waila",
"keystrokes": "Keystrokes",
"fog": "Fog",
"itemtracker": "ItemTracker",
"3dskins": "3dSkins",
"armorstatus": "Armorstatus",
"autotexthotkey": "AutoTextHotkey",
"teamview": "TeamView",
"packdisplay": "PackDisplay",
"hypixelmod": "HypixelMod",
"quickplay": "Quickplay",
"packorganizer": "PackOrganizer",
"fov": "Fov",
"playtime": "Playtime",
"shinypots": "ShinyPots",
"itemcounter": "ItemCounter",
"tntcountdown": "TntCountdown",
"togglesneak": "ToggleSneak",
"minimap": "Minimap",
"daycounter": "DayCounter",
"blockoutline": "BlockOutline",
"bossbar": "Bossbar",
"chat": "Chat",
"chunkborders": "ChunkBorders",
"clock": "Clock",
"colorsaturation": "ColorSaturation",
"combo": "Combo",
"cooldowns": "Cooldowns",
"coordinates": "Coordinates",
"clock": "Clock",
"timechanger": "TimeChanger",
"serveraddress": "ServerAddress",
"chat": "Chat",
"fps": "Fps",
"lighting": "Lighting",
"cps": "Cps",
"crosshair": "Crosshair",
"damagetint": "DamageTint",
"daycounter": "DayCounter",
"directionhud": "DirectionHud",
"cooldowns": "Cooldowns",
"motionblur": "MotionBlur",
"uhcoverlay": "UhcOverlay",
"chunkborders": "ChunkBorders",
"fog": "Fog",
"fov": "Fov",
"fps": "Fps",
"freelook": "Freelook",
"glintcolorizer": "GlintColorizer",
"hitbox": "Hitbox",
"sba": "Sba",
"hitcolor": "HitColor",
"hurtcam": "HurtCam",
"hypixelbedwars": "HypixelBedwars",
"hypixelmod": "HypixelMod",
"itemcounter": "ItemCounter",
"itemphysics": "ItemPhysics",
"itemtracker": "ItemTracker",
"keystrokes": "Keystrokes",
"lighting": "Lighting",
"memory": "Memory",
"reachdisplay": "ReachDisplay",
"colorsaturation": "ColorSaturation",
"pvpinfo": "PvpInfo",
"ping": "Ping",
"servertitles": "ServerTitles",
"onesevenvisuals": "OneSevenVisuals",
"weatherchanger": "WeatherChanger",
"menublur": "MenuBlur",
"minimap": "Minimap",
"momentum": "Momentum",
"motionblur": "MotionBlur",
"mumblelink": "MumbleLink",
"nametag": "Nametag",
"soundchanger": "SoundChanger",
"neu": "Neu",
"nickhider": "NickHider",
"onesevenvisuals": "OneSevenVisuals",
"packdisplay": "PackDisplay",
"packorganizer": "PackOrganizer",
"particlechanger": "ParticleChanger",
"ping": "Ping",
"playtime": "Playtime",
"potioneffects": "PotionEffects",
"pvpinfo": "PvpInfo",
"quickplay": "Quickplay",
"reachdisplay": "ReachDisplay",
"replaymod": "Replaymod",
"stopwatch": "Stopwatch",
"mumblelink": "MumbleLink",
"scrollabletooltips": "ScrollableTooltips",
"crosshair": "Crosshair",
"damagetint": "DamageTint",
"saturation": "Saturation",
"sba": "Sba",
"scoreboard": "Scoreboard",
"screenshot": "Screenshot",
"tab": "Tab",
"freelook": "Freelook",
"scrollabletooltips": "ScrollableTooltips",
"serveraddress": "ServerAddress",
"shinypots": "ShinyPots",
"snaplook": "Snaplook",
"potioneffects": "PotionEffects",
"zoom": "Zoom",
"3dskins": "3dSkins",
"saturation": "Saturation",
"neu": "Neu"
"soundchanger": "SoundChanger",
"stopwatch": "Stopwatch",
"tab": "Tab",
"teamview": "TeamView",
"timechanger": "TimeChanger",
"titles": "Titles",
"tntcountdown": "TntCountdown",
"togglesneak": "ToggleSneak",
"uhcoverlay": "UhcOverlay",
"waila": "Waila",
"waypoints": "Waypoints",
"weatherchanger": "WeatherChanger",
"worldeditcui": "WorldeditCui",
"zoom": "Zoom"
}
2 changes: 1 addition & 1 deletion docs/developers/mods/onesevenvisuals.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Revert certain visuals and animations to how they behaved on 1.7.
### How to toggle the mod

```java
public void toggle1_7VisualsExample(Player viewer, boolean value) {
public void toggle17VisualsExample(Player viewer, boolean value) {
Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
apolloPlayerOpt.ifPresent(apolloPlayer -> this.modSettingModule.getOptions().set(apolloPlayer, ModOneSevenVisuals.ENABLED, value));
}
Expand Down
20 changes: 0 additions & 20 deletions docs/developers/mods/servertitles.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion docs/developers/mods/togglesneak.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Make the sprinting and sneaking keys toggleable instead of needing to be held do
### How to toggle the mod

```java
public void toggleToggleSneak/SprintExample(Player viewer, boolean value) {
public void toggleToggleSneakSprintExample(Player viewer, boolean value) {
Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
apolloPlayerOpt.ifPresent(apolloPlayer -> this.modSettingModule.getOptions().set(apolloPlayer, ModToggleSneak.ENABLED, value));
}
Expand Down

1 comment on commit d902db3

@LunarClientBot
Copy link
Collaborator Author

@LunarClientBot LunarClientBot commented on d902db3 Sep 27, 2023

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://8fce5206.lunarclient-dev.pages.dev

Please sign in to comment.