コード例 #1
0
  @Mod.EventHandler
  public void load(FMLInitializationEvent event) {
    CraftingManager.init();

    modBlocks.registerTileEntities();

    new GuiHandler();
    new ConfigSynchronizeHandler();

    PacketHandler.init();
    EntityEquipmentDataManager.init();
    EntitySkinHandler.init();

    proxy.init();
    proxy.registerKeyBindings();
    proxy.initRenderers();

    Addons.init();
  }
コード例 #2
0
  @Mod.EventHandler
  public void perInit(FMLPreInitializationEvent event) {
    ModLogger.log("Loading " + LibModInfo.NAME + " " + LibModInfo.VERSION);
    creativeTabArmorersWorkshop.setMinecraftCreativeTab(tabArmorersWorkshop);
    ConfigHandler.init(event.getSuggestedConfigurationFile());

    Addons.preInit();
    proxy.preInit();

    SkinIOUtils.makeLibraryDirectory();
    UpdateCheck.checkForUpdates();
    SkinExtractor.extractSkins();

    modItems = new ModItems();
    modBlocks = new ModBlocks();

    SkinTypeRegistry.init();
    CubeRegistry.init();
    proxy.initLibraryManager();
  }
コード例 #3
0
 @Mod.EventHandler
 public void postInit(FMLPostInitializationEvent event) {
   proxy.postInit();
   Addons.postInit();
   proxy.libraryManager.reloadLibrary();
 }