mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 15:03:03 +00:00
68 lines
2.1 KiB
Java
68 lines
2.1 KiB
Java
/**
|
|
* This class was created by <Vazkii>. It's distributed as
|
|
* part of the Botania Mod. Get the Source Code in github:
|
|
* https://github.com/Vazkii/Botania
|
|
*
|
|
* Botania is Open Source and distributed under a
|
|
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
|
|
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
|
|
*
|
|
* File Created @ [Jan 13, 2014, 6:32:39 PM (GMT)]
|
|
*/
|
|
package vazkii.botania.common;
|
|
|
|
import vazkii.botania.common.core.handler.AliasHandler;
|
|
import vazkii.botania.common.core.handler.ManaNetworkHandler;
|
|
import vazkii.botania.common.core.proxy.CommonProxy;
|
|
import vazkii.botania.common.lib.LibMisc;
|
|
import cpw.mods.fml.common.Mod;
|
|
import cpw.mods.fml.common.Mod.EventHandler;
|
|
import cpw.mods.fml.common.Mod.Instance;
|
|
import cpw.mods.fml.common.SidedProxy;
|
|
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
|
import cpw.mods.fml.common.event.FMLMissingMappingsEvent;
|
|
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
|
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
|
import cpw.mods.fml.common.event.FMLServerStartingEvent;
|
|
import cpw.mods.fml.common.event.FMLServerStoppingEvent;
|
|
|
|
@Mod(modid = LibMisc.MOD_ID, name = LibMisc.MOD_NAME, version = LibMisc.VERSION, dependencies = LibMisc.DEPENDENCIES)
|
|
public class Botania {
|
|
|
|
@Instance(LibMisc.MOD_ID)
|
|
public static Botania instance;
|
|
|
|
@SidedProxy(serverSide = LibMisc.PROXY_COMMON, clientSide = LibMisc.PROXY_CLIENT)
|
|
public static CommonProxy proxy;
|
|
|
|
@EventHandler
|
|
public void preInit(FMLPreInitializationEvent event) {
|
|
proxy.preInit(event);
|
|
}
|
|
|
|
@EventHandler
|
|
public void init(FMLInitializationEvent event) {
|
|
proxy.init(event);
|
|
}
|
|
|
|
@EventHandler
|
|
public void postInit(FMLPostInitializationEvent event) {
|
|
proxy.postInit(event);
|
|
}
|
|
|
|
@EventHandler
|
|
public void serverStarting(FMLServerStartingEvent event) {
|
|
proxy.serverStarting(event);
|
|
}
|
|
|
|
@EventHandler
|
|
public void serverStopping(FMLServerStoppingEvent event) {
|
|
ManaNetworkHandler.instance.clear();
|
|
}
|
|
|
|
@EventHandler
|
|
public void missingMappings(FMLMissingMappingsEvent event) {
|
|
AliasHandler.onMissingMappings(event);
|
|
}
|
|
}
|