@Mod.EventHandler
public void onInit(FMLInitializationEvent ev) {
info("Randores is Initializing...",
"Sending handler message to WAILA.");
FMLInterModComms.sendMessage("waila", "register", "com.gmail.socraticphoenix.randores.waila.RandoresWailaHandler.callbackRegister");
if (Loader.isModLoaded("waila")) {
info("WAILA was found and should have receieved the handler message.");
} else {
info("WAILA wasn't found. The handler message will be ignored.");
}
info("Registering up GUI handler and world generators...");
NetworkRegistry.INSTANCE.registerGuiHandler(this, new RandoresGuiHandler());
GameRegistry.registerWorldGenerator(new RandoresWorldGenerator(), 10);
GameRegistry.registerWorldGenerator(new RandoresAltarGenerator(), -100);
info("Registered GUI hander and world generators.", "Calling proxy Initialization...");
Randores.PROXY.initSided(ev);
info("Finished Initialization.");
}
Randores.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:Randores2
作者:
评论列表
文章目录