Skip to content

Commit

Permalink
Update Mixin_RenderHudCallback.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ferriarnus committed May 11, 2024
1 parent 6665aa4 commit 636fc2d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import de.johni0702.minecraft.gui.versions.callbacks.RenderHudCallback;
import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.gui.hud.InGameHud;
import net.neoforged.neoforge.client.gui.overlay.ExtendedGui;
import net.neoforged.neoforge.client.gui.overlay.VanillaGuiOverlay;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand All @@ -12,18 +14,18 @@
//$$ import net.minecraft.client.util.math.MatrixStack;
//#endif

@Mixin(InGameHud.class)
@Mixin(VanillaGuiOverlay.class)
public class Mixin_RenderHudCallback {
@Inject(
method = "render",
method = "lambda$static$19",
//#if MC>=12002
at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/hud/DebugHud;shouldShowDebugHud()Z")
//#else
//$$ at = @At(value = "FIELD", opcode = Opcodes.GETFIELD, target = "Lnet/minecraft/client/option/GameOptions;debugEnabled:Z")
//#endif
)
//#if MC>=12000
private void renderOverlay(DrawContext stack, float partialTicks, CallbackInfo ci) {
private static void renderOverlay(ExtendedGui gui, DrawContext stack, float partialTicks, int screenWidth, int screenHeight, CallbackInfo ci) {
//#elseif MC>=11600
//$$ private void renderOverlay(MatrixStack stack, float partialTicks, CallbackInfo ci) {
//#else
Expand Down

0 comments on commit 636fc2d

Please sign in to comment.