Search in sources :

Example 1 with AIRobotGotoStationAndLoadFluids

use of buildcraft.robotics.ai.AIRobotGotoStationAndLoadFluids in project BuildCraft by BuildCraft.

the class BoardRobotFluidCarrier method update.

@Override
public void update() {
    if (!robotHasFluid()) {
        IFluidFilter filter = ActionRobotFilter.getGateFluidFilter(robot.getLinkedStation());
        startDelegateAI(new AIRobotGotoStationAndLoadFluids(robot, filter));
    } else {
        startDelegateAI(new AIRobotGotoStationAndUnloadFluids(robot));
    }
}
Also used : IFluidFilter(buildcraft.api.core.IFluidFilter) AIRobotGotoStationAndUnloadFluids(buildcraft.robotics.ai.AIRobotGotoStationAndUnloadFluids) AIRobotGotoStationAndLoadFluids(buildcraft.robotics.ai.AIRobotGotoStationAndLoadFluids)

Aggregations

IFluidFilter (buildcraft.api.core.IFluidFilter)1 AIRobotGotoStationAndLoadFluids (buildcraft.robotics.ai.AIRobotGotoStationAndLoadFluids)1 AIRobotGotoStationAndUnloadFluids (buildcraft.robotics.ai.AIRobotGotoStationAndUnloadFluids)1