1212@ Mixin (Gui .class )
1313public abstract class GuiMixin {
1414
15- @ Unique static private void HudManager_scaleHudElement (int scale , int x , int y , GuiGraphics arg0 , DeltaTracker arg1 , Operation <Void > original ) {
15+ @ Unique static private void HudManager_modifyHudElement (int scale , int x , int y , GuiGraphics arg0 , DeltaTracker arg1 , Operation <Void > original ) {
1616 arg0 .pose ().pushMatrix ();
1717 HudManager .Global .SCALE = scale ;
1818 arg0 .pose ().scale (0.01f * scale );
@@ -28,7 +28,7 @@ private void scaleActionBar(GuiGraphics arg0, DeltaTracker arg1, Operation<Void>
2828 if (scale == 0 || HudManager .ActionBarShow .isFalse ()) return ;
2929 int x = HudManager .ActionBarOffsetX .getAsInt ();
3030 int y = HudManager .ActionBarOffsetY .getAsInt ();
31- HudManager_scaleHudElement (scale , x , y , arg0 , arg1 , original );
31+ HudManager_modifyHudElement (scale , x , y , arg0 , arg1 , original );
3232 }
3333
3434 @ WrapMethod (method = "renderSavingIndicator" )
@@ -37,7 +37,7 @@ private void scaleAutoSaveIndicator(GuiGraphics arg0, DeltaTracker arg1, Operati
3737 if (scale == 0 || HudManager .AutoSaveIndicatorShow .isFalse ()) return ;
3838 int x = HudManager .AutoSaveIndicatorOffsetX .getAsInt ();
3939 int y = HudManager .AutoSaveIndicatorOffsetY .getAsInt ();
40- HudManager_scaleHudElement (scale , x , y , arg0 , arg1 , original );
40+ HudManager_modifyHudElement (scale , x , y , arg0 , arg1 , original );
4141 }
4242
4343 @ WrapMethod (method = "renderBossOverlay" )
@@ -46,7 +46,7 @@ private void scaleBossBar(GuiGraphics arg0, DeltaTracker arg1, Operation<Void> o
4646 if (scale == 0 || HudManager .BossBarShow .isFalse ()) return ;
4747 int x = HudManager .BossBarOffsetX .getAsInt ();
4848 int y = HudManager .BossBarOffsetY .getAsInt ();
49- HudManager_scaleHudElement (scale , x , y , arg0 , arg1 , original );
49+ HudManager_modifyHudElement (scale , x , y , arg0 , arg1 , original );
5050 }
5151
5252 @ WrapMethod (method = "renderSubtitleOverlay" )
@@ -55,7 +55,7 @@ private void scaleClosedCaption(GuiGraphics arg0, DeltaTracker arg1, Operation<V
5555 if (scale == 0 || HudManager .ClosedCaptionShow .isFalse ()) return ;
5656 int x = HudManager .ClosedCaptionOffsetX .getAsInt ();
5757 int y = HudManager .ClosedCaptionOffsetY .getAsInt ();
58- HudManager_scaleHudElement (scale , x , y , arg0 , arg1 , original );
58+ HudManager_modifyHudElement (scale , x , y , arg0 , arg1 , original );
5959 }
6060
6161 @ WrapMethod (method = "renderCrosshair" )
@@ -64,7 +64,7 @@ private void scaleCrosshair(GuiGraphics arg0, DeltaTracker arg1, Operation<Void>
6464 if (scale == 0 || HudManager .CrosshairShow .isFalse ()) return ;
6565 int x = HudManager .CrosshairOffsetX .getAsInt ();
6666 int y = HudManager .CrosshairOffsetY .getAsInt ();
67- HudManager_scaleHudElement (scale , x , y , arg0 , arg1 , original );
67+ HudManager_modifyHudElement (scale , x , y , arg0 , arg1 , original );
6868 }
6969
7070 @ WrapMethod (method = "renderDebugOverlay" )
@@ -73,7 +73,7 @@ private void scaleDebugScreen(GuiGraphics arg0, DeltaTracker arg1, Operation<Voi
7373 if (scale == 0 || HudManager .DebugScreenShow .isFalse ()) return ;
7474 int x = HudManager .DebugScreenOffsetX .getAsInt ();
7575 int y = HudManager .DebugScreenOffsetY .getAsInt ();
76- HudManager_scaleHudElement (scale , x , y , arg0 , arg1 , original );
76+ HudManager_modifyHudElement (scale , x , y , arg0 , arg1 , original );
7777 }
7878
7979 @ WrapMethod (method = "renderTabList" )
@@ -82,7 +82,7 @@ private void scalePlayerList(GuiGraphics arg0, DeltaTracker arg1, Operation<Void
8282 if (scale == 0 || HudManager .PlayerListShow .isFalse ()) return ;
8383 int x = HudManager .PlayerListOffsetX .getAsInt ();
8484 int y = HudManager .PlayerListOffsetY .getAsInt ();
85- HudManager_scaleHudElement (scale , x , y , arg0 , arg1 , original );
85+ HudManager_modifyHudElement (scale , x , y , arg0 , arg1 , original );
8686 }
8787
8888 @ WrapMethod (method = "renderScoreboardSidebar" )
@@ -91,7 +91,7 @@ private void scaleScoreboardSidebar(GuiGraphics arg0, DeltaTracker arg1, Operati
9191 if (scale == 0 || HudManager .ScoreboardSidebarShow .isFalse ()) return ;
9292 int x = HudManager .ScoreboardSidebarOffsetX .getAsInt ();
9393 int y = HudManager .ScoreboardSidebarOffsetY .getAsInt ();
94- HudManager_scaleHudElement (scale , x , y , arg0 , arg1 , original );
94+ HudManager_modifyHudElement (scale , x , y , arg0 , arg1 , original );
9595 }
9696
9797 @ WrapMethod (method = "renderTitle" )
@@ -100,7 +100,7 @@ private void scaleScreenTitle(GuiGraphics arg0, DeltaTracker arg1, Operation<Voi
100100 if (scale == 0 || HudManager .ScreenTitleShow .isFalse ()) return ;
101101 int x = HudManager .ScreenTitleOffsetX .getAsInt ();
102102 int y = HudManager .ScreenTitleOffsetY .getAsInt ();
103- HudManager_scaleHudElement (scale , x , y , arg0 , arg1 , original );
103+ HudManager_modifyHudElement (scale , x , y , arg0 , arg1 , original );
104104 }
105105
106106 @ WrapMethod (method = "renderEffects" )
@@ -109,7 +109,7 @@ private void scaleStatusEffect(GuiGraphics arg0, DeltaTracker arg1, Operation<Vo
109109 if (scale == 0 || HudManager .StatusEffectShow .isFalse ()) return ;
110110 int x = HudManager .StatusEffectOffsetX .getAsInt ();
111111 int y = HudManager .StatusEffectOffsetY .getAsInt ();
112- HudManager_scaleHudElement (scale , x , y , arg0 , arg1 , original );
112+ HudManager_modifyHudElement (scale , x , y , arg0 , arg1 , original );
113113 }
114114
115115}
0 commit comments