/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  net.minecraft.class_11659
 *  net.minecraft.class_11950
 *  net.minecraft.class_2586
 *  net.minecraft.class_2960
 *  net.minecraft.class_4587
 *  net.minecraft.class_822
 *  net.minecraft.class_827
 *  org.spongepowered.asm.mixin.Mixin
 *  org.spongepowered.asm.mixin.injection.At
 *  org.spongepowered.asm.mixin.injection.Inject
 *  org.spongepowered.asm.mixin.injection.callback.CallbackInfo
 */
package meteordevelopment.meteorclient.mixin;

import meteordevelopment.meteorclient.systems.modules.Modules;
import meteordevelopment.meteorclient.systems.modules.render.NoRender;
import net.minecraft.class_11659;
import net.minecraft.class_11950;
import net.minecraft.class_2586;
import net.minecraft.class_2960;
import net.minecraft.class_4587;
import net.minecraft.class_822;
import net.minecraft.class_827;
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.CallbackInfo;

@Mixin(value={class_822.class})
public abstract class BeaconBlockEntityRendererMixin<T extends class_2586>
implements class_827<T, class_11950> {
    @Inject(method={"method_3545(Lnet/minecraft/class_4587;Lnet/minecraft/class_11659;Lnet/minecraft/class_2960;FFIIIFF)V"}, at={@At(value="HEAD")}, cancellable=true)
    private static void onRender(class_4587 matrixStack, class_11659 orderedRenderCommandQueue, class_2960 textureId, float tickProgress, float heightScale, int i, int j, int k, float f, float g, CallbackInfo ci) {
        if (Modules.get().get(NoRender.class).noBeaconBeams()) {
            ci.cancel();
        }
    }
}

