GuiIngameMixin.java (821B)
1 package ambos.vanillafixes.mixin; 2 3 import net.minecraft.client.gui.GuiIngame; 4 import org.spongepowered.asm.mixin.Mixin; 5 import org.spongepowered.asm.mixin.injection.*; 6 7 import ambos.vanillafixes.VanillaFixes; 8 9 @Mixin(value = GuiIngame.class, remap = false) 10 final class GuiIngameMixin { 11 @ModifyConstant(method = "renderGameOverlay", constant = @Constant(stringValue = "s I: ")) 12 private String deobfuscateWeatherIntensity(String value) { 13 if (VanillaFixes.F3_MENU) { 14 return "s, Intensity: "; 15 } 16 17 return value; 18 } 19 20 @ModifyConstant(method = "renderGameOverlay", constant = @Constant(stringValue = "% P: ")) 21 private String deobfuscateWeatherPower(String value) { 22 if (VanillaFixes.F3_MENU) { 23 return "%, Power: "; 24 } 25 26 return value; 27 } 28 }