Exemplo n.º 1
0
  @Mod.EventHandler
  public void preInit(FMLPreInitializationEvent event) throws IOException {
    String configFolderPath =
        event.getModConfigurationDirectory().toString()
            + File.separator
            + Reference.MOD_ID
            + File.separator;

    ForgeConfig.init(event.getSuggestedConfigurationFile());

    Integration.init();

    customItemsTab.init();

    JsonConfigurationHandler.init(configFolderPath, event.getSourceFile());

    GameRegistry.registerWorldGenerator(new CustomWorldGenerator(), 1);

    proxy.registerTileEntities();
    proxy.Integration_NEI();

    MinecraftForge.EVENT_BUS.register(new EntityDropHandler());
    MinecraftForge.EVENT_BUS.register(new BlockDropHandler());
  }
Exemplo n.º 2
0
 @Mod.EventHandler
 public void postInit(FMLPostInitializationEvent event) {
   JsonConfigurationHandler.post_init();
 }