2022-07-31 20:41:56 +02:00
|
|
|
/*
|
2022-07-30 15:21:11 +02:00
|
|
|
* Copyright (C) 2022 FalsePattern
|
|
|
|
|
* All Rights Reserved
|
|
|
|
|
*
|
|
|
|
|
* The above copyright notice, this permission notice and the word "SNEED"
|
|
|
|
|
* 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 <https://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
2022-06-10 02:53:23 +02:00
|
|
|
package com.falsepattern.lib.internal.proxy;
|
|
|
|
|
|
2022-08-30 20:16:19 +02:00
|
|
|
import com.falsepattern.lib.internal.impl.config.event.ClientEventHandlerPost;
|
|
|
|
|
import com.falsepattern.lib.internal.impl.config.event.ClientEventHandlerPre;
|
2022-07-30 23:26:25 +02:00
|
|
|
import com.falsepattern.lib.internal.impl.toast.GuiToastImpl;
|
|
|
|
|
|
|
|
|
|
import net.minecraft.client.Minecraft;
|
2022-06-10 02:53:23 +02:00
|
|
|
import net.minecraftforge.common.MinecraftForge;
|
2022-07-30 23:26:25 +02:00
|
|
|
import cpw.mods.fml.common.event.FMLConstructionEvent;
|
|
|
|
|
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;
|
2022-06-10 02:53:23 +02:00
|
|
|
|
2022-06-19 22:42:52 +02:00
|
|
|
import java.util.Collections;
|
2022-06-10 02:53:23 +02:00
|
|
|
import java.util.List;
|
2022-06-19 22:42:52 +02:00
|
|
|
import java.util.concurrent.CompletableFuture;
|
2022-06-10 02:53:23 +02:00
|
|
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
|
public class ClientProxy extends CommonProxy {
|
2022-07-30 23:26:25 +02:00
|
|
|
@Override
|
|
|
|
|
public void construct(FMLConstructionEvent e) {
|
|
|
|
|
super.construct(e);
|
|
|
|
|
GuiToastImpl.initialize(Minecraft.getMinecraft());
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-10 02:53:23 +02:00
|
|
|
@Override
|
|
|
|
|
public void preInit(FMLPreInitializationEvent e) {
|
|
|
|
|
super.preInit(e);
|
2022-08-30 20:16:19 +02:00
|
|
|
ClientEventHandlerPre.registerBus();
|
2022-06-10 02:53:23 +02:00
|
|
|
MinecraftForge.EVENT_BUS.register(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void postInit(FMLPostInitializationEvent e) {
|
|
|
|
|
super.postInit(e);
|
2022-08-30 20:16:19 +02:00
|
|
|
ClientEventHandlerPost.registerBus();
|
2022-06-10 02:53:23 +02:00
|
|
|
}
|
|
|
|
|
}
|