/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  net.minecraft.class_1661
 *  net.minecraft.class_1703
 *  net.minecraft.class_1708
 *  net.minecraft.class_2561
 *  net.minecraft.class_465
 *  net.minecraft.class_472
 *  org.spongepowered.asm.mixin.Mixin
 */
package meteordevelopment.meteorclient.mixin;

import meteordevelopment.meteorclient.systems.modules.Modules;
import meteordevelopment.meteorclient.systems.modules.world.AutoBrewer;
import net.minecraft.class_1661;
import net.minecraft.class_1703;
import net.minecraft.class_1708;
import net.minecraft.class_2561;
import net.minecraft.class_465;
import net.minecraft.class_472;
import org.spongepowered.asm.mixin.Mixin;

@Mixin(value={class_472.class})
public abstract class BrewingStandScreenMixin
extends class_465<class_1708> {
    public BrewingStandScreenMixin(class_1708 container, class_1661 playerInventory, class_2561 name) {
        super((class_1703)container, playerInventory, name);
    }

    public void method_37432() {
        super.method_37432();
        if (Modules.get().isActive(AutoBrewer.class)) {
            Modules.get().get(AutoBrewer.class).tick((class_1708)this.field_2797);
        }
    }

    public void method_25419() {
        if (Modules.get().isActive(AutoBrewer.class)) {
            Modules.get().get(AutoBrewer.class).onBrewingStandClose();
        }
        super.method_25419();
    }
}

