Skip to content

Commit

Permalink
Revert Target Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
yurisuika committed Feb 3, 2023
1 parent 318f9f3 commit a249294
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public class AppleskinMixin {
@Mixin(HUDOverlayHandler.class)
public static class HUDOverlayHandlerMixin {

@Redirect(method = "onPreRender", at = @At(value = "INVOKE", target = "net/minecraft/client/util/Window.getScaledHeight()I"))
@Redirect(method = "onPreRender", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;getScaledHeight()I"))
private int redirectOnPreRender(Window instance) {
return instance.getScaledHeight() - Raised.getHud();
}

@Redirect(method = "onRender", at = @At(value = "INVOKE", target = "net/minecraft/client/util/Window.getScaledHeight()I"))
@Redirect(method = "onRender", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;getScaledHeight()I"))
private int redirectOnRender(Window instance) {
return instance.getScaledHeight() - Raised.getHud();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class BotaniaMixin {
@Mixin(HUDHandler.class)
public static class HUDHandlerMixin {

@Redirect(method = "renderManaInvBar", at = @At(value = "INVOKE", target = "net/minecraft/client/util/Window.getScaledHeight()I"))
@Redirect(method = "renderManaInvBar", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;getScaledHeight()I"))
private static int redirectRenderManaInvBar(Window instance) {
return instance.getScaledHeight() - Raised.getHud();
}
Expand All @@ -26,7 +26,7 @@ private static int redirectRenderManaInvBar(Window instance) {
@Mixin(ItemFlightTiara.ClientLogic.class)
public static class ItemFlightTiaraMixin {

@Redirect(method = "renderHUD", at = @At(value = "INVOKE", target = "net/minecraft/client/util/Window.getScaledHeight()I"))
@Redirect(method = "renderHUD", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;getScaledHeight()I"))
private static int redirectRenderHUD(Window instance) {
return instance.getScaledHeight() - Raised.getHud();
}
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/dev/yurisuika/raised/mixin/mods/CreateMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class CreateMixin {
@Mixin(CopperBacktankArmorLayer.class)
public static class CopperBacktankArmorLayerMixin {

@Redirect(method = "renderRemainingAirOverlay", at = @At(value = "INVOKE", target = "net/minecraft/client/util/Window.getScaledHeight()I"))
@Redirect(method = "renderRemainingAirOverlay", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;getScaledHeight()I"))
private static int modifyRenderRemainingAirOverlay(Window instance) {
return instance.getScaledHeight() - Raised.getHud();
}
Expand All @@ -28,7 +28,7 @@ private static int modifyRenderRemainingAirOverlay(Window instance) {
@Mixin(SchematicHotbarSlotOverlay.class)
public static class SchematicHotbarSlotOverlayMixin {

@Redirect(method = "renderOn", at = @At(value = "INVOKE", target = "net/minecraft/client/util/Window.getScaledHeight()I"))
@Redirect(method = "renderOn", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;getScaledHeight()I"))
private int modifyRenderOn(Window instance) {
return instance.getScaledHeight() - Raised.getHud();
}
Expand All @@ -39,7 +39,7 @@ private int modifyRenderOn(Window instance) {
@Mixin(ToolboxHandlerClient.class)
public static class ToolboxHandlerClientMixin {

@Redirect(method = "renderOverlay", at = @At(value = "INVOKE", target = "net/minecraft/client/util/Window.getScaledHeight()I"))
@Redirect(method = "renderOverlay", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;getScaledHeight()I"))
private static int modifyRenderOverlay(Window instance) {
return instance.getScaledHeight() - Raised.getHud();
}
Expand All @@ -50,7 +50,7 @@ private static int modifyRenderOverlay(Window instance) {
@Mixin(ToolSelectionScreen.class)
public static class ToolSelectionScreenMixin {

@Redirect(method = "draw", at = @At(value = "INVOKE", target = "net/minecraft/client/util/Window.getScaledHeight()I"))
@Redirect(method = "draw", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;getScaledHeight()I"))
private int redirectDraw(Window instance) {
return instance.getScaledHeight() - Raised.getHud();
}
Expand All @@ -61,7 +61,7 @@ private int redirectDraw(Window instance) {
@Mixin(TrainHUD.class)
public static class TrainHUDMixin {

@Redirect(method = "renderOverlay", at = @At(value = "INVOKE", target = "net/minecraft/client/util/Window.getScaledHeight()I"))
@Redirect(method = "renderOverlay", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;getScaledHeight()I"))
private static int modifyRenderOverlay(Window instance) {
return instance.getScaledHeight() - Raised.getHud();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class DetailArmorBarMixin {
@Mixin(ArmorBarRenderer.class)
public static class ArmorBarRendererMixin {

@Redirect(method = "render", at = @At(value = "INVOKE", target = "net/minecraft/client/util/Window.getScaledHeight()I"))
@Redirect(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;getScaledHeight()I"))
private int redirectRender(Window instance) {
return instance.getScaledHeight() - Raised.getHud();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public class InventorioMixin {
@Mixin(HotbarHUDRenderer.class)
public static class HotbarHUDRendererMixin {

@Redirect(method = "renderHotbarAddons", at = @At(value = "INVOKE", target = "net/minecraft/client/util/Window.getScaledHeight()I"))
@Redirect(method = "renderHotbarAddons", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;getScaledHeight()I"))
private int redirectRenderHotbarAddons(Window instance) {
return instance.getScaledHeight() - Raised.getHud();
}

@Redirect(method = "renderSegmentedHotbar", at = @At(value = "INVOKE", target = "net/minecraft/client/util/Window.getScaledHeight()I"))
@Redirect(method = "renderSegmentedHotbar", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;getScaledHeight()I"))
private int redirectRenderSegmentedHotbar(Window instance) {
return instance.getScaledHeight() - Raised.getHud();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class InventoryProfilesNextMixin {
@Mixin(LockSlotsHandler.class)
public static class LockSlotsHandlerMixin {

@Redirect(method = "drawHotSprite", at = @At(value = "INVOKE", target = "net/minecraft/client/util/Window.getScaledHeight()I"))
@Redirect(method = "drawHotSprite", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;getScaledHeight()I"))
private int redirectDrawHotSprite(Window instance) {
return instance.getScaledHeight() - Raised.getHud();
}
Expand Down

0 comments on commit a249294

Please sign in to comment.