mirror of
https://github.com/GTNewHorizons/NotEnoughEnergistics.git
synced 2026-11-21 04:22:11 +00:00
38 lines
1.3 KiB
Java
38 lines
1.3 KiB
Java
package com.github.vfyjxf.nee;
|
|
|
|
import com.github.vfyjxf.nee.network.NEENetworkHandler;
|
|
import cpw.mods.fml.common.Mod;
|
|
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
|
import cpw.mods.fml.common.event.FMLServerStartingEvent;
|
|
import net.minecraft.launchwrapper.Launch;
|
|
import org.apache.logging.log4j.LogManager;
|
|
import org.apache.logging.log4j.Logger;
|
|
|
|
import java.io.File;
|
|
|
|
|
|
@Mod(modid = NotEnoughEnergistics.MODID,
|
|
version = NotEnoughEnergistics.VERSION,
|
|
name = NotEnoughEnergistics.NAME,
|
|
dependencies = NotEnoughEnergistics.DEPENDENCIES,
|
|
useMetadata = true)
|
|
public class NotEnoughEnergistics {
|
|
public static final String MODID = "neenergistics";
|
|
public static final String NAME = "NotEnoughEnergistics";
|
|
public static final String VERSION = "@VERSION@";
|
|
public static final String DEPENDENCIES = "required-after:NotEnoughItems;required-after:appliedenergistics2";
|
|
public static final Logger logger = LogManager.getLogger("NotEnoughEnergistics");
|
|
|
|
@Mod.EventHandler
|
|
public void preInit(FMLPreInitializationEvent e) {
|
|
NEENetworkHandler.init();
|
|
NEEConfig.loadConfig(new File(Launch.minecraftHome, "config/NotEnoughEnergistics.cfg"));
|
|
}
|
|
|
|
@Mod.EventHandler
|
|
private void serverStarting(FMLServerStartingEvent event) {
|
|
event.registerServerCommand(new NEECommands());
|
|
}
|
|
|
|
}
|