本文整理汇总了Java中ethanjones.cubes.core.mod.event.InitializationEvent类的典型用法代码示例。如果您正苦于以下问题:Java InitializationEvent类的具体用法?Java InitializationEvent怎么用?Java InitializationEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
InitializationEvent类属于ethanjones.cubes.core.mod.event包,在下文中一共展示了InitializationEvent类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import ethanjones.cubes.core.mod.event.InitializationEvent; //导入依赖的package包/类
public static void init() {
if (!preInit)
throw new CubesException("Cubes.init called before Cubes.preInit");
if (init)
return;
init = true;
JsonLoader.loadCore();
Blocks.init();
ModManager.init();
JsonLoader.firstStage();
Compatibility.get().preInit();
ModManager.postModEvent(new PreInitializationEvent());
JsonLoader.secondStage();
Settings.init();
Compatibility.get().init();
ModManager.postModEvent(new InitializationEvent());
Assets.init();
Localization.load();
Settings.print();
Compatibility.get().postInit();
ModManager.postModEvent(new PostInitializationEvent());
IDManager.loaded();
EntityManager.loaded();
if (!Adapter.isDedicatedServer())
Graphics.init();
}
示例2: event
import ethanjones.cubes.core.mod.event.InitializationEvent; //导入依赖的package包/类
@Override
protected void event(ModEvent modEvent) throws Exception {
if (modEvent instanceof PreInitializationEvent)
JsonLoader.firstStage(map);
if (modEvent instanceof InitializationEvent)
JsonLoader.secondStage(map);
}
示例3: init
import ethanjones.cubes.core.mod.event.InitializationEvent; //导入依赖的package包/类
public static void init() {
if (!preInit) throw new CubesException("Cubes.init called before Cubes.preInit");
if (init) return;
init = true;
JsonLoader.loadCore();
Blocks.init();
ModManager.init();
JsonLoader.firstStage();
Compatibility.get().preInit();
ModManager.postModEvent(new PreInitializationEvent());
JsonLoader.secondStage();
Settings.init();
Compatibility.get().init();
ModManager.postModEvent(new InitializationEvent());
Assets.init();
Localization.load();
Settings.print();
Compatibility.get().postInit();
ModManager.postModEvent(new PostInitializationEvent());
IDManager.loaded();
EntityManager.loaded();
if (!Adapter.isDedicatedServer()) Graphics.init();
}
示例4: event
import ethanjones.cubes.core.mod.event.InitializationEvent; //导入依赖的package包/类
@Override
protected void event(ModEvent modEvent) throws Exception {
if (modEvent instanceof PreInitializationEvent) JsonLoader.firstStage(map);
if (modEvent instanceof InitializationEvent) JsonLoader.secondStage(map);
}