use of cpw.mods.fml.common.ModMetadata in project SecurityCraft by Geforce132.
the class mod_SecurityCraft method preInit.
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
log("Starting to load....");
log("Loading config file....");
log(mod_SecurityCraft.VERSION + " of SecurityCraft is for a post MC-1.6.4 version! Configuration files are useless for setting anything besides options.");
mod_SecurityCraft.configFile = new Configuration(event.getSuggestedConfigurationFile());
this.configHandler.setupConfiguration();
log("Config file loaded.");
log("Setting up handlers!");
this.configHandler.setupHandlers(event);
log("Handlers registered.");
log("Setting up network....");
mod_SecurityCraft.network = NetworkRegistry.INSTANCE.newSimpleChannel(mod_SecurityCraft.MODID);
this.configHandler.setupPackets(mod_SecurityCraft.network);
log("Network setup.");
log("Loading mod additions...");
this.configHandler.setupAdditions();
if (this.debuggingMode) {
this.configHandler.setupDebugAdditions();
}
log("Finished loading mod additions.");
log("Doing registering stuff... (PT 1/2)");
this.configHandler.setupGameRegistry();
ModMetadata modMeta = event.getModMetadata();
modMeta.authorList = Arrays.asList(new String[] { "Geforce" });
modMeta.autogenerated = false;
modMeta.credits = "Thanks to all of you guys for your support!";
modMeta.description = "Adds a load of things to keep your house safe with.\nIf you like this mod, hit the green arrow\nin the corner of the forum thread!\nPlease visit the URL above for help. \n \nMessage of the update: \n" + MOTU;
modMeta.url = "http://geforce.freeforums.org";
}
Aggregations