/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  net.minecraft.class_2338
 *  net.minecraft.class_243
 *  net.minecraft.class_4970$class_4971
 *  org.spongepowered.asm.mixin.Mixin
 *  org.spongepowered.asm.mixin.injection.At
 *  org.spongepowered.asm.mixin.injection.Inject
 *  org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable
 */
package meteordevelopment.meteorclient.mixin;

import meteordevelopment.meteorclient.systems.modules.Modules;
import meteordevelopment.meteorclient.systems.modules.render.NoRender;
import net.minecraft.class_2338;
import net.minecraft.class_243;
import net.minecraft.class_4970;
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(value={class_4970.class_4971.class})
public abstract class AbstractBlockStateMixin {
    @Inject(method={"method_26226"}, at={@At(value="HEAD")}, cancellable=true)
    private void modifyPos(class_2338 pos, CallbackInfoReturnable<class_243> info) {
        if (Modules.get() == null) {
            return;
        }
        if (Modules.get().get(NoRender.class).noTextureRotations()) {
            info.setReturnValue((Object)class_243.field_1353);
        }
    }
}

