aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dulkirmod/mixins/MixinRendererManager.java
blob: 97b5bbef9c385dffd4348367cb6613b3bbaf8a08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 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<Boolean> cir) {
        HideHealerFairy.INSTANCE.handle(entity, cir);
    }
}