Example #1
0
  @Mod.EventHandler
  public void init(FMLInitializationEvent evt) {
    NetworkRegistry.INSTANCE.registerGuiHandler(instance, new RoboticsGuiHandler());
    MinecraftForge.EVENT_BUS.register(this);

    if (BuildCraftCore.loadDefaultRecipes && Loader.isModLoaded("BuildCraft|Silicon")) {
      loadRecipes();
    }

    BCCreativeTab.get("boards").setIcon(new ItemStack(BuildCraftRobotics.redstoneBoard, 1));

    PipeManager.registerPipePluggable(RobotStationPluggable.class, "robotStation");
    EntityRegistry.registerModEntity(
        EntityRobot.class, "bcRobot", EntityIds.ROBOT, instance, 50, 1, true);

    CoreProxy.proxy.registerTileEntity(
        TileZonePlan.class, "net.minecraft.src.buildcraft.commander.TileZonePlan");
    CoreProxy.proxy.registerTileEntity(
        TileRequester.class, "net.minecraft.src.buildcraft.commander.TileRequester");

    RobotManager.registryProvider = new RobotRegistryProvider();

    RobotManager.registerAIRobot(
        AIRobotMain.class, "aiRobotMain", "buildcraft.core.robots.AIRobotMain");
    RobotManager.registerAIRobot(BoardRobotEmpty.class, "boardRobotEmpty");
    RobotManager.registerAIRobot(
        BoardRobotBomber.class,
        "boardRobotBomber",
        "buildcraft.core.robots.boards.BoardRobotBomber");
    if (Loader.isModLoaded("BuildCraft|Builders")) {
      RobotManager.registerAIRobot(
          BoardRobotBuilder.class,
          "boardRobotBuilder",
          "buildcraft.core.robots.boards.BoardRobotBuilder");
    }
    RobotManager.registerAIRobot(
        BoardRobotButcher.class,
        "boardRobotButcher",
        "buildcraft.core.robots.boards.BoardRobotButcher");
    RobotManager.registerAIRobot(
        BoardRobotCarrier.class,
        "boardRobotCarrier",
        "buildcraft.core.robots.boards.BoardRobotCarrier");
    RobotManager.registerAIRobot(
        BoardRobotDelivery.class,
        "boardRobotDelivery",
        "buildcraft.core.robots.boards.BoardRobotDelivery");
    RobotManager.registerAIRobot(
        BoardRobotFarmer.class,
        "boardRobotFarmer",
        "buildcraft.core.robots.boards.BoardRobotFarmer");
    RobotManager.registerAIRobot(
        BoardRobotFluidCarrier.class,
        "boardRobotFluidCarrier",
        "buildcraft.core.robots.boards.BoardRobotFluidCarrier");
    RobotManager.registerAIRobot(
        BoardRobotHarvester.class,
        "boardRobotHarvester",
        "buildcraft.core.robots.boards.BoardRobotHarvester");
    RobotManager.registerAIRobot(
        BoardRobotKnight.class,
        "boardRobotKnight",
        "buildcraft.core.robots.boards.BoardRobotKnight");
    RobotManager.registerAIRobot(
        BoardRobotLeaveCutter.class,
        "boardRobotLeaveCutter",
        "buildcraft.core.robots.boards.BoardRobotLeaveCutter");
    RobotManager.registerAIRobot(
        BoardRobotLumberjack.class,
        "boardRobotLumberjack",
        "buildcraft.core.robots.boards.BoardRobotLumberjack");
    RobotManager.registerAIRobot(
        BoardRobotMiner.class, "boardRobotMiner", "buildcraft.core.robots.boards.BoardRobotMiner");
    RobotManager.registerAIRobot(
        BoardRobotPicker.class,
        "boardRobotPicker",
        "buildcraft.core.robots.boards.BoardRobotPicker");
    RobotManager.registerAIRobot(
        BoardRobotPlanter.class,
        "boardRobotPlanter",
        "buildcraft.core.robots.boards.BoardRobotPlanter");
    RobotManager.registerAIRobot(
        BoardRobotPump.class, "boardRobotPump", "buildcraft.core.robots.boards.BoardRobotPump");
    RobotManager.registerAIRobot(
        BoardRobotShovelman.class,
        "boardRobotShovelman",
        "buildcraft.core.robots.boards.BoardRobotShovelman");
    RobotManager.registerAIRobot(
        BoardRobotStripes.class,
        "boardRobotStripes",
        "buildcraft.core.robots.boards.BoardRobotStripes");
    RobotManager.registerAIRobot(
        AIRobotAttack.class, "aiRobotAttack", "buildcraft.core.robots.AIRobotAttack");
    RobotManager.registerAIRobot(
        AIRobotBreak.class, "aiRobotBreak", "buildcraft.core.robots.AIRobotBreak");
    RobotManager.registerAIRobot(
        AIRobotDeliverRequested.class,
        "aiRobotDeliverRequested",
        "buildcraft.core.robots.AIRobotDeliverRequested");
    RobotManager.registerAIRobot(
        AIRobotDisposeItems.class,
        "aiRobotDisposeItems",
        "buildcraft.core.robots.AIRobotDisposeItems");
    RobotManager.registerAIRobot(
        AIRobotFetchAndEquipItemStack.class,
        "aiRobotFetchAndEquipItemStack",
        "buildcraft.core.robots.AIRobotFetchAndEquipItemStack");
    RobotManager.registerAIRobot(
        AIRobotFetchItem.class, "aiRobotFetchItem", "buildcraft.core.robots.AIRobotFetchItem");
    RobotManager.registerAIRobot(
        AIRobotGoAndLinkToDock.class,
        "aiRobotGoAndLinkToDock",
        "buildcraft.core.robots.AIRobotGoAndLinkToDock");
    RobotManager.registerAIRobot(
        AIRobotGoto.class, "aiRobotGoto", "buildcraft.core.robots.AIRobotGoto");
    RobotManager.registerAIRobot(
        AIRobotGotoBlock.class, "aiRobotGotoBlock", "buildcraft.core.robots.AIRobotGotoBlock");
    RobotManager.registerAIRobot(
        AIRobotGotoSleep.class, "aiRobotGotoSleep", "buildcraft.core.robots.AIRobotGotoSleep");
    RobotManager.registerAIRobot(
        AIRobotGotoStation.class,
        "aiRobotGotoStation",
        "buildcraft.core.robots.AIRobotGotoStation");
    RobotManager.registerAIRobot(
        AIRobotGotoStationAndLoad.class,
        "aiRobotGotoStationAndLoad",
        "buildcraft.core.robots.AIRobotGotoStationAndLoad");
    RobotManager.registerAIRobot(
        AIRobotGotoStationAndLoadFluids.class,
        "aiRobotGotoStationAndLoadFluids",
        "buildcraft.core.robots.AIRobotGotoStationAndLoadFluids");
    RobotManager.registerAIRobot(
        AIRobotGotoStationAndUnload.class,
        "aiRobotGotoStationAndUnload",
        "buildcraft.core.robots.AIRobotGotoStationAndUnload");
    RobotManager.registerAIRobot(
        AIRobotGotoStationToLoad.class,
        "aiRobotGotoStationToLoad",
        "buildcraft.core.robots.AIRobotGotoStationToLoad");
    RobotManager.registerAIRobot(
        AIRobotGotoStationToLoadFluids.class,
        "aiRobotGotoStationToLoadFluids",
        "buildcraft.core.robots.AIRobotGotoStationToLoadFluids");
    RobotManager.registerAIRobot(
        AIRobotGotoStationToUnload.class,
        "aiRobotGotoStationToUnload",
        "buildcraft.core.robots.AIRobotGotoStationToUnload");
    RobotManager.registerAIRobot(
        AIRobotGotoStationToUnloadFluids.class,
        "aiRobotGotoStationToUnloadFluids",
        "buildcraft.core.robots.AIRobotGotoStationToUnloadFluids");
    RobotManager.registerAIRobot(AIRobotHarvest.class, "aiRobotHarvest");
    RobotManager.registerAIRobot(
        AIRobotLoad.class, "aiRobotLoad", "buildcraft.core.robots.AIRobotLoad");
    RobotManager.registerAIRobot(
        AIRobotLoadFluids.class, "aiRobotLoadFluids", "buildcraft.core.robots.AIRobotLoadFluids");
    RobotManager.registerAIRobot(AIRobotPlant.class, "aiRobotPlant");
    RobotManager.registerAIRobot(
        AIRobotPumpBlock.class, "aiRobotPumpBlock", "buildcraft.core.robots.AIRobotPumpBlock");
    RobotManager.registerAIRobot(
        AIRobotRecharge.class, "aiRobotRecharge", "buildcraft.core.robots.AIRobotRecharge");
    RobotManager.registerAIRobot(AIRobotSearchAndGotoBlock.class, "aiRobotSearchAndGoToBlock");
    RobotManager.registerAIRobot(
        AIRobotSearchAndGotoStation.class,
        "aiRobotSearchAndGotoStation",
        "buildcraft.core.robots.AIRobotSearchAndGotoStation");
    RobotManager.registerAIRobot(
        AIRobotSearchBlock.class,
        "aiRobotSearchBlock",
        "buildcraft.core.robots.AIRobotSearchBlock");
    RobotManager.registerAIRobot(
        AIRobotSearchEntity.class,
        "aiRobotSearchEntity",
        "buildcraft.core.robots.AIRobotSearchEntity");
    RobotManager.registerAIRobot(
        AIRobotSearchRandomGroundBlock.class,
        "aiRobotSearchRandomGroundBlock",
        "buildcraft.core.robots.AIRobotSearchRandomGroundBlock");
    RobotManager.registerAIRobot(
        AIRobotSearchStackRequest.class,
        "aiRobotSearchStackRequest",
        "buildcraft.core.robots.AIRobotSearchStackRequest");
    RobotManager.registerAIRobot(
        AIRobotSearchStation.class,
        "aiRobotSearchStation",
        "buildcraft.core.robots.AIRobotSearchStation");
    RobotManager.registerAIRobot(AIRobotShutdown.class, "aiRobotShutdown");
    RobotManager.registerAIRobot(
        AIRobotSleep.class, "aiRobotSleep", "buildcraft.core.robots.AIRobotSleep");
    RobotManager.registerAIRobot(
        AIRobotStraightMoveTo.class,
        "aiRobotStraightMoveTo",
        "buildcraft.core.robots.AIRobotStraightMoveTo");
    RobotManager.registerAIRobot(
        AIRobotUnload.class, "aiRobotUnload", "buildcraft.core.robots.AIRobotUnload");
    RobotManager.registerAIRobot(
        AIRobotUnloadFluids.class,
        "aiRobotUnloadFluids",
        "buildcraft.core.robots.AIRobotUnloadFluids");
    RobotManager.registerAIRobot(
        AIRobotUseToolOnBlock.class,
        "aiRobotUseToolOnBlock",
        "buildcraft.core.robots.AIRobotUseToolOnBlock");

    RobotManager.registerDockingStation(DockingStationPipe.class, "dockingStationPipe");

    RoboticsProxy.proxy.registerRenderers();
  }