Search in sources :

Example 1 with AIRobotGotoStationAndUnload

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

the class BoardRobotCarrier method update.

@Override
public void update() {
    if (!robot.containsItems()) {
        IStackFilter filter = ActionRobotFilter.getGateFilter(robot.getLinkedStation());
        startDelegateAI(new AIRobotGotoStationAndLoad(robot, filter, AIRobotLoad.ANY_QUANTITY));
    } else {
        startDelegateAI(new AIRobotGotoStationAndUnload(robot));
    }
}
Also used : AIRobotGotoStationAndLoad(buildcraft.robotics.ai.AIRobotGotoStationAndLoad) AIRobotGotoStationAndUnload(buildcraft.robotics.ai.AIRobotGotoStationAndUnload) IStackFilter(buildcraft.api.core.IStackFilter)

Aggregations

IStackFilter (buildcraft.api.core.IStackFilter)1 AIRobotGotoStationAndLoad (buildcraft.robotics.ai.AIRobotGotoStationAndLoad)1 AIRobotGotoStationAndUnload (buildcraft.robotics.ai.AIRobotGotoStationAndUnload)1