/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  net.minecraft.class_1088
 *  net.minecraft.class_11239
 *  net.minecraft.class_11659
 *  net.minecraft.class_11661
 *  net.minecraft.class_11684
 *  net.minecraft.class_11701
 *  net.minecraft.class_1767
 *  net.minecraft.class_308$class_11274
 *  net.minecraft.class_310
 *  net.minecraft.class_3879
 *  net.minecraft.class_4587
 *  net.minecraft.class_4597$class_4598
 *  net.minecraft.class_4608
 *  net.minecraft.class_4730
 *  net.minecraft.class_823
 *  net.minecraft.class_9307
 */
package meteordevelopment.meteorclient.utils.render;

import meteordevelopment.meteorclient.utils.render.CustomBannerGuiElementRenderState;
import net.minecraft.class_1088;
import net.minecraft.class_11239;
import net.minecraft.class_11659;
import net.minecraft.class_11661;
import net.minecraft.class_11684;
import net.minecraft.class_11701;
import net.minecraft.class_1767;
import net.minecraft.class_308;
import net.minecraft.class_310;
import net.minecraft.class_3879;
import net.minecraft.class_4587;
import net.minecraft.class_4597;
import net.minecraft.class_4608;
import net.minecraft.class_4730;
import net.minecraft.class_823;
import net.minecraft.class_9307;

public class CustomBannerGuiElementRenderer
extends class_11239<CustomBannerGuiElementRenderState> {
    private final class_11701 sprite;

    public CustomBannerGuiElementRenderer(class_4597.class_4598 immediate, class_11701 sprite) {
        super(immediate);
        this.sprite = sprite;
    }

    public Class<CustomBannerGuiElementRenderState> method_70903() {
        return CustomBannerGuiElementRenderState.class;
    }

    protected void render(CustomBannerGuiElementRenderState state, class_4587 matrixStack) {
        class_310.method_1551().field_1773.method_71114().method_71034(class_308.class_11274.field_60026);
        matrixStack.method_46416(0.0f, 0.25f, 0.0f);
        class_11684 renderDispatcher = class_310.method_1551().field_1773.method_72911();
        class_11661 orderedRenderCommandQueueImpl = renderDispatcher.method_73003();
        class_823.method_23802((class_11701)this.sprite, (class_4587)matrixStack, (class_11659)orderedRenderCommandQueueImpl, (int)0xF000F0, (int)class_4608.field_21444, (class_3879)state.flag(), (Object)Float.valueOf(0.0f), (class_4730)class_1088.field_20847, (boolean)true, (class_1767)state.baseColor(), (class_9307)state.resultBannerPatterns(), (boolean)false, null, (int)0);
        renderDispatcher.method_73002();
    }

    protected String method_70906() {
        return "custom banner";
    }
}

