aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dulkirmod/mixins/MixinRenderManager.java
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-05-25 17:55:27 -0500
committeringlettronald <inglettronald@gmail.com>2023-05-25 17:55:27 -0500
commita0ca63ab2e7140ce614ebb5268d04500308f6569 (patch)
treea38c47c16896df7b9dcc68a500c3f5137304948c /src/main/java/dulkirmod/mixins/MixinRenderManager.java
parente645175075b28d13266650ec00f6d5b7927133bf (diff)
downloadDulkirMod-a0ca63ab2e7140ce614ebb5268d04500308f6569.tar.gz
DulkirMod-a0ca63ab2e7140ce614ebb5268d04500308f6569.tar.bz2
DulkirMod-a0ca63ab2e7140ce614ebb5268d04500308f6569.zip
rename
Diffstat (limited to 'src/main/java/dulkirmod/mixins/MixinRenderManager.java')
-rw-r--r--src/main/java/dulkirmod/mixins/MixinRenderManager.java18
1 files changed, 18 insertions, 0 deletions
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<Boolean> cir) {
+ HideHealerFairy.INSTANCE.handle(entity, cir);
+ }
+} \ No newline at end of file