package net.halbear.aotg.registries;

import net.halbear.aotg.custom.GuiScreens.AlloyFurnaceGUIScreen;
import net.halbear.aotg.custom.GuiScreens.ForgeWorkbenchGUIScreen;
import net.halbear.aotg.custom.blocks.AlloyFurnace.AlloyFurnaceGUI;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.fml.common.EventBusSubscriber;
import net.neoforged.neoforge.client.event.RegisterMenuScreensEvent;

@EventBusSubscriber(Dist.CLIENT)
public class ModScreens {
    @SubscribeEvent
    public static void clientLoad(RegisterMenuScreensEvent event) {
        event.register(ModMenus.ALLOY_FURNACE_GUI.get(), AlloyFurnaceGUIScreen::new);
        event.register(ModMenus.FORGE_WORKBENCH_GUI.get(), ForgeWorkbenchGUIScreen::new);
    }

    public interface ScreenAccessor {
        void updateMenuState(int elementType, String name, Object elementState);
    }

}
