From a0ca63ab2e7140ce614ebb5268d04500308f6569 Mon Sep 17 00:00:00 2001 From: inglettronald Date: Thu, 25 May 2023 17:55:27 -0500 Subject: rename --- src/main/java/dulkirmod/mixins/MixinRenderManager.java | 18 ++++++++++++++++++ .../java/dulkirmod/mixins/MixinRendererManager.java | 18 ------------------ 2 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 src/main/java/dulkirmod/mixins/MixinRenderManager.java delete mode 100644 src/main/java/dulkirmod/mixins/MixinRendererManager.java diff --git a/src/main/java/dulkirmod/mixins/MixinRenderManager.java b/src/main/java/dulkirmod/mixins/MixinRenderManager.java new file mode 100644 index 0000000..0550ed6 --- /dev/null +++ b/src/main/java/dulkirmod/mixins/MixinRenderManager.java @@ -0,0 +1,18 @@ +package dulkirmod.mixins; + +import dulkirmod.features.dungeons.HideHealerFairy; +import net.minecraft.client.renderer.entity.RenderManager; +import net.minecraft.entity.Entity; +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.injection.At; +import org.spongepowered.asm.mixin.injection.Inject; +import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; + +@Mixin(RenderManager.class) +public class MixinRenderManager { + + @Inject(method = "doRenderEntity", at = @At("HEAD"), cancellable = true) + public void doRender(Entity entity, double x, double y, double z, float entityYaw, float partialTicks, boolean p_147939_10_, CallbackInfoReturnable cir) { + HideHealerFairy.INSTANCE.handle(entity, cir); + } +} \ No newline at end of file diff --git a/src/main/java/dulkirmod/mixins/MixinRendererManager.java b/src/main/java/dulkirmod/mixins/MixinRendererManager.java deleted file mode 100644 index 97b5bbe..0000000 --- a/src/main/java/dulkirmod/mixins/MixinRendererManager.java +++ /dev/null @@ -1,18 +0,0 @@ -package dulkirmod.mixins; - -import dulkirmod.features.dungeons.HideHealerFairy; -import net.minecraft.client.renderer.entity.RenderManager; -import net.minecraft.entity.Entity; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; - -@Mixin(RenderManager.class) -public class MixinRendererManager { - - @Inject(method = "doRenderEntity", at = @At("HEAD"), cancellable = true) - public void doRender(Entity entity, double x, double y, double z, float entityYaw, float partialTicks, boolean p_147939_10_, CallbackInfoReturnable cir) { - HideHealerFairy.INSTANCE.handle(entity, cir); - } -} \ No newline at end of file -- cgit