2021-02-28 19:13:43 +08:00
|
|
|
package me.towdium.jecalculation.network;
|
2016-02-21 20:19:10 +08:00
|
|
|
|
2022-12-18 14:31:25 +08:00
|
|
|
import static me.towdium.jecalculation.gui.JecaGui.keyOpenGuiCraft;
|
|
|
|
|
import static me.towdium.jecalculation.gui.JecaGui.keyOpenGuiMath;
|
|
|
|
|
|
2021-04-26 14:26:06 +08:00
|
|
|
import cpw.mods.fml.client.registry.ClientRegistry;
|
2021-06-21 03:00:09 +08:00
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
2021-07-19 11:33:53 +08:00
|
|
|
import me.towdium.jecalculation.command.JecaCommand;
|
2021-05-01 01:00:16 +08:00
|
|
|
import me.towdium.jecalculation.data.Controller;
|
2021-04-30 14:46:38 +08:00
|
|
|
import me.towdium.jecalculation.data.label.ILabel;
|
2021-05-01 01:00:16 +08:00
|
|
|
import me.towdium.jecalculation.event.Handlers;
|
2021-07-19 11:33:53 +08:00
|
|
|
import net.minecraftforge.client.ClientCommandHandler;
|
2021-04-26 14:26:06 +08:00
|
|
|
|
2021-06-21 03:00:09 +08:00
|
|
|
@SideOnly(Side.CLIENT)
|
2021-04-30 23:53:58 +08:00
|
|
|
public class ClientHandler {
|
2016-02-23 16:41:45 +08:00
|
|
|
|
2021-04-30 14:46:38 +08:00
|
|
|
public void initPre() {
|
2021-05-01 01:00:16 +08:00
|
|
|
Handlers.register();
|
2021-04-30 14:46:38 +08:00
|
|
|
}
|
2021-03-02 18:04:08 +08:00
|
|
|
|
2021-04-26 14:26:06 +08:00
|
|
|
public void initPost() {
|
2021-04-30 23:53:58 +08:00
|
|
|
ILabel.initServer();
|
2021-07-19 11:33:53 +08:00
|
|
|
ClientCommandHandler.instance.registerCommand(new JecaCommand());
|
2021-04-30 14:46:38 +08:00
|
|
|
ILabel.initClient();
|
2021-05-01 00:27:40 +08:00
|
|
|
Controller.loadFromLocal();
|
2021-03-02 18:04:08 +08:00
|
|
|
}
|
|
|
|
|
|
2016-02-23 16:41:45 +08:00
|
|
|
public void init() {
|
2021-05-01 23:15:00 +08:00
|
|
|
ClientRegistry.registerKeyBinding(keyOpenGuiCraft);
|
|
|
|
|
ClientRegistry.registerKeyBinding(keyOpenGuiMath);
|
2016-02-23 21:43:27 +08:00
|
|
|
}
|
2016-02-21 20:19:10 +08:00
|
|
|
}
|