예제 #1
0
  @EventHandler
  public void preInit(FMLPreInitializationEvent event) {

    // init block and item data
    BlockData.init();
    ItemData.init();

    // config
    ConfigData.init();
    ConfigHandler.init(event.getSuggestedConfigurationFile());
    ConfigData.load();

    // modbase init
    VanillaData.init();
    TextureMapper.init();
    BlockCollector.init();
    ItemCollector.init();
    EntityData.init();

    // create blocks
    BlockCollector.createBlocks();
    ItemCollector.createItems();
    EntityCollector.registerEntities();

    // proxy
    proxy.init();
    proxy.registerRenderers();
    proxy.registerEvents();

    Recipes.registerRecipes();
  }
예제 #2
0
  @EventHandler
  public void load(FMLInitializationEvent event) {
    LanguageRegistry.instance().addStringLocalization("itemGroup.Pistronics2", "Pistronics 2");
    PacketData.init();
    proxy.registerTileEntities();
    NetworkRegistry.instance().registerGuiHandler(this, new GuiHandler());

    MinecraftForge.EVENT_BUS.register(arrowEventHandler);
  }