/* * Copyright (C) 2022-2023 FalsePattern * All Rights Reserved * * The above copyright notice and this permission notice * shall be included in all copies or substantial portions of the Software. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ package com.falsepattern.lib.internal.proxy; import com.falsepattern.lib.internal.config.InGameModOptionsFix; import com.falsepattern.lib.internal.impl.config.event.ClientEventHandlerPost; import com.falsepattern.lib.internal.impl.config.event.ClientEventHandlerPre; import com.falsepattern.lib.internal.impl.toast.GuiToastImpl; import net.minecraft.client.Minecraft; import net.minecraftforge.common.MinecraftForge; import cpw.mods.fml.common.event.FMLConstructionEvent; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class ClientProxy extends CommonProxy { @Override public void construct(FMLConstructionEvent e) { super.construct(e); GuiToastImpl.initialize(Minecraft.getMinecraft()); } @Override public void preInit(FMLPreInitializationEvent e) { super.preInit(e); ClientEventHandlerPre.registerBus(); MinecraftForge.EVENT_BUS.register(this); } @Override public void init(FMLInitializationEvent e) { super.init(e); InGameModOptionsFix.init(); } @Override public void postInit(FMLPostInitializationEvent e) { super.postInit(e); ClientEventHandlerPost.registerBus(); } }