Skip to content

Commit ea8cb96

Browse files
committed
Release 1.21.6 Neoforge
1 parent 98d7403 commit ea8cb96

File tree

5 files changed

+27
-36
lines changed

5 files changed

+27
-36
lines changed

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ minecraft_version=1.21.6
1616
# The Minecraft version range can use any release version of Minecraft as bounds.
1717
# Snapshots, pre-releases, and release candidates are not guaranteed to sort properly
1818
# as they do not follow standard versioning conventions.
19-
minecraft_version_range=[1.21.6]
19+
minecraft_version_range=[1.21.6,)
2020
# The Neo version must agree with the Minecraft version to get a valid artifact
2121
neo_version=21.6.20-beta
2222

@@ -30,12 +30,12 @@ mod_name=HUD Manager
3030
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
3131
mod_license=MIT
3232
# The mod version. See https://semver.org/
33-
mod_version=1.0.0-mc1.21.6-neoforge
33+
mod_version=1.0.0+mc1.21.6+neoforge
3434
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
3535
# This should match the base package used for the mod sources.
3636
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
3737
mod_group_id=com.i5wear.hudmanager
3838
# The authors of the mod. This is a simple text string that is used for display purposes in the mod list.
3939
mod_authors=i5wear
4040
# The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list.
41-
mod_description=Manages HUD elements in separate options.
41+
mod_description=Manages HUD elements separately.

src/main/java/com/i5wear/hudmanager/HUDManager.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,28 @@ public class HUDManager {
1212

1313
public static float SCALE = 1;
1414

15-
public static class Config {
15+
public static class Configuration {
1616

1717
private static final ModConfigSpec.Builder BUILDER = new ModConfigSpec.Builder();
1818

1919
public static final ModConfigSpec.IntValue
20-
ActionBarScale = BUILDER.comment("//hudmanager.config.ActionBarScale.tooltip").defineInRange("ActionBarScale", 100, 0, 200),
21-
AutoSaveIndicatorScale = BUILDER.comment("//hudmanager.config.AutoSaveIndicatorScale.tooltip").defineInRange("AutoSaveIndicatorScale", 100, 0, 200),
22-
BossBarScale = BUILDER.comment("//hudmanager.config.BossBarScale.tooltip").defineInRange("BossBarScale", 100, 0, 200),
23-
ClosedCaptionScale = BUILDER.comment("//hudmanager.config.ClosedCaptionScale.tooltip").defineInRange("ClosedCaptionScale", 100, 0, 200),
24-
CrosshairScale = BUILDER.comment("//hudmanager.config.CrosshairScale.tooltip").defineInRange("CrosshairScale", 100, 0, 200),
25-
DebugScreenScale = BUILDER.comment("//hudmanager.config.DebugScreenScale.tooltip").defineInRange("DebugScreenScale", 100, 0, 200),
26-
PlayerListScale = BUILDER.comment("//hudmanager.config.PlayerListScale.tooltip").defineInRange("PlayerListScale", 100, 0, 200),
27-
ScoreboardSidebarScale = BUILDER.comment("//hudmanager.config.ScoreboardSidebarScale.tooltip").defineInRange("ScoreboardSidebarScale", 100, 0, 200),
28-
ScreenTitleScale = BUILDER.comment("//hudmanager.config.ScreenTitleScale.tooltip").defineInRange("ScreenTitleScale", 100, 0, 200),
29-
StatusEffectScale = BUILDER.comment("//hudmanager.config.StatusEffectScale.tooltip").defineInRange("StatusEffectScale", 100, 0, 200);
20+
ActionBarScale = BUILDER.defineInRange("ActionBarScale", 100, 0, 200),
21+
AutoSaveIndicatorScale = BUILDER.defineInRange("AutoSaveIndicatorScale", 100, 0, 200),
22+
BossBarScale = BUILDER.defineInRange("BossBarScale", 100, 0, 200),
23+
ClosedCaptionScale = BUILDER.defineInRange("ClosedCaptionScale", 100, 0, 200),
24+
CrosshairScale = BUILDER.defineInRange("CrosshairScale", 100, 0, 200),
25+
DebugScreenScale = BUILDER.defineInRange("DebugScreenScale", 100, 0, 200),
26+
PlayerListScale = BUILDER.defineInRange("PlayerListScale", 100, 0, 200),
27+
ScoreboardSidebarScale = BUILDER.defineInRange("ScoreboardSidebarScale", 100, 0, 200),
28+
ScreenTitleScale = BUILDER.defineInRange("ScreenTitleScale", 100, 0, 200),
29+
StatusEffectScale = BUILDER.defineInRange("StatusEffectScale", 100, 0, 200);
3030

3131
private static final ModConfigSpec SPEC = BUILDER.build();
3232

3333
}
3434

3535
public HUDManager(ModContainer container) {
36-
container.registerConfig(ModConfig.Type.COMMON, HUDManager.Config.SPEC);
36+
container.registerConfig(ModConfig.Type.CLIENT, HUDManager.Configuration.SPEC);
3737
container.registerExtensionPoint(IConfigScreenFactory.class, ConfigurationScreen::new);
3838
}
3939

src/main/java/com/i5wear/hudmanager/mixin/GuiMixin.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,42 +28,42 @@ public abstract class GuiMixin {
2828

2929
@WrapMethod(method = "renderOverlayMessage")
3030
private void scaleActionBar(GuiGraphics arg0, DeltaTracker arg1, Operation<Void> original)
31-
{ HUDManager_scaleHudElement(0.01f * HUDManager.Config.ActionBarScale.getAsInt(), arg0, arg1, original); }
31+
{ HUDManager_scaleHudElement(0.01f * HUDManager.Configuration.ActionBarScale.getAsInt(), arg0, arg1, original); }
3232

3333
@WrapMethod(method = "renderSavingIndicator")
3434
private void scaleAutoSaveIndicator(GuiGraphics arg0, DeltaTracker arg1, Operation<Void> original)
35-
{ HUDManager_scaleHudElement(0.01f * HUDManager.Config.AutoSaveIndicatorScale.getAsInt(), arg0, arg1, original); }
35+
{ HUDManager_scaleHudElement(0.01f * HUDManager.Configuration.AutoSaveIndicatorScale.getAsInt(), arg0, arg1, original); }
3636

3737
@WrapMethod(method = "renderBossOverlay")
3838
private void scaleBossBar(GuiGraphics arg0, DeltaTracker arg1, Operation<Void> original)
39-
{ HUDManager_scaleHudElement(0.01f * HUDManager.Config.BossBarScale.getAsInt(), arg0, arg1, original); }
39+
{ HUDManager_scaleHudElement(0.01f * HUDManager.Configuration.BossBarScale.getAsInt(), arg0, arg1, original); }
4040

4141
@WrapMethod(method = "renderSubtitleOverlay")
4242
private void scaleClosedCaption(GuiGraphics arg0, DeltaTracker arg1, Operation<Void> original)
43-
{ HUDManager_scaleHudElement(0.01f * HUDManager.Config.ClosedCaptionScale.getAsInt(), arg0, arg1, original); }
43+
{ HUDManager_scaleHudElement(0.01f * HUDManager.Configuration.ClosedCaptionScale.getAsInt(), arg0, arg1, original); }
4444

4545
@WrapMethod(method = "renderCrosshair")
4646
private void scaleCrosshair(GuiGraphics arg0, DeltaTracker arg1, Operation<Void> original)
47-
{ HUDManager_scaleHudElement(0.01f * HUDManager.Config.CrosshairScale.getAsInt(), arg0, arg1, original); }
47+
{ HUDManager_scaleHudElement(0.01f * HUDManager.Configuration.CrosshairScale.getAsInt(), arg0, arg1, original); }
4848

4949
@WrapMethod(method = "renderDebugOverlay")
5050
private void scaleDebugScreen(GuiGraphics arg0, DeltaTracker arg1, Operation<Void> original)
51-
{ HUDManager_scaleHudElement(0.01f * HUDManager.Config.DebugScreenScale.getAsInt(), arg0, arg1, original); }
51+
{ HUDManager_scaleHudElement(0.01f * HUDManager.Configuration.DebugScreenScale.getAsInt(), arg0, arg1, original); }
5252

5353
@WrapMethod(method = "renderTabList")
5454
private void scalePlayerList(GuiGraphics arg0, DeltaTracker arg1, Operation<Void> original)
55-
{ HUDManager_scaleHudElement(0.01f * HUDManager.Config.PlayerListScale.getAsInt(), arg0, arg1, original); }
55+
{ HUDManager_scaleHudElement(0.01f * HUDManager.Configuration.PlayerListScale.getAsInt(), arg0, arg1, original); }
5656

5757
@WrapMethod(method = "renderScoreboardSidebar")
5858
private void scaleScoreboardSidebar(GuiGraphics arg0, DeltaTracker arg1, Operation<Void> original)
59-
{ HUDManager_scaleHudElement(0.01f * HUDManager.Config.ScoreboardSidebarScale.getAsInt(), arg0, arg1, original); }
59+
{ HUDManager_scaleHudElement(0.01f * HUDManager.Configuration.ScoreboardSidebarScale.getAsInt(), arg0, arg1, original); }
6060

6161
@WrapMethod(method = "renderTitle")
6262
private void scaleScreenTitle(GuiGraphics arg0, DeltaTracker arg1, Operation<Void> original)
63-
{ HUDManager_scaleHudElement(0.01f * HUDManager.Config.ScreenTitleScale.getAsInt(), arg0, arg1, original); }
63+
{ HUDManager_scaleHudElement(0.01f * HUDManager.Configuration.ScreenTitleScale.getAsInt(), arg0, arg1, original); }
6464

6565
@WrapMethod(method = "renderEffects")
6666
private void scaleStatusEffect(GuiGraphics arg0, DeltaTracker arg1, Operation<Void> original)
67-
{ HUDManager_scaleHudElement(0.01f * HUDManager.Config.StatusEffectScale.getAsInt(), arg0, arg1, original); }
67+
{ HUDManager_scaleHudElement(0.01f * HUDManager.Configuration.StatusEffectScale.getAsInt(), arg0, arg1, original); }
6868

6969
}
File renamed without changes.

src/main/templates/META-INF/neoforge.mods.toml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
license="${mod_license}"
1010

1111
# A URL to refer people to when problems occur with this mod
12-
#issueTrackerURL="https://change.me.to.your.issue.tracker.example.invalid/" #optional
12+
issueTrackerURL="https://github.com/i5wear/HUD-Manager/issues" #optional
1313

1414
# A list of mods - how many allowed here is determined by the individual mod loader
1515
[[mods]] #mandatory
@@ -23,17 +23,8 @@ version="${mod_version}" #mandatory
2323
# A display name for the mod
2424
displayName="${mod_name}" #mandatory
2525

26-
# A URL to query for updates for this mod. See the JSON update specification https://docs.neoforged.net/docs/misc/updatechecker/
27-
#updateJSONURL="https://change.me.example.invalid/updates.json" #optional
28-
2926
# A URL for the "homepage" for this mod, displayed in the mod UI
30-
#displayURL="https://change.me.to.your.mods.homepage.example.invalid/" #optional
31-
32-
# A file name (in the root of the mod JAR) containing a logo for display
33-
#logoFile="examplemod.png" #optional
34-
35-
# A text field displayed in the mod UI
36-
#credits="" #optional
27+
displayURL="https://modrinth.com/mod/HUD-Manager" #optional
3728

3829
# A text field displayed in the mod UI
3930
authors="${mod_authors}" #optional

0 commit comments

Comments
 (0)