remove allow craft trigger for robots

This commit is contained in:
Hea3veN 2015-06-02 21:42:11 -03:00
parent c889032d00
commit 5b7f021bbf
3 changed files with 1 additions and 62 deletions

View file

@ -135,7 +135,6 @@ import buildcraft.robotics.statements.ActionRobotWorkInArea;
import buildcraft.robotics.statements.ActionRobotWorkInArea.AreaType;
import buildcraft.robotics.statements.ActionStationAcceptFluids;
import buildcraft.robotics.statements.ActionStationAcceptItems;
import buildcraft.robotics.statements.ActionStationAllowCraft;
import buildcraft.robotics.statements.ActionStationForbidRobot;
import buildcraft.robotics.statements.ActionStationProvideFluids;
import buildcraft.robotics.statements.ActionStationProvideItems;
@ -171,7 +170,6 @@ public class BuildCraftRobotics extends BuildCraftMod {
public static IActionInternal actionRobotLoadUnloadArea = new ActionRobotWorkInArea(AreaType.LOAD_UNLOAD);
public static IActionInternal actionRobotFilter = new ActionRobotFilter();
public static IActionInternal actionRobotFilterTool = new ActionRobotFilterTool();
public static IActionInternal actionRobotAllowCraft = new ActionStationAllowCraft();
public static IActionInternal actionStationRequestItems = new ActionStationRequestItems();
public static IActionInternal actionStationProvideItems = new ActionStationProvideItems();
public static IActionInternal actionStationAcceptFluids = new ActionStationAcceptFluids();

View file

@ -1,51 +0,0 @@
/**
* Copyright (c) 2011-2015, SpaceToad and the BuildCraft Team
* http://www.mod-buildcraft.com
*
* BuildCraft is distributed under the terms of the Minecraft Mod Public
* License 1.0, or MMPL. Please check the contents of the license located in
* http://www.mod-buildcraft.com/MMPL-1.0.txt
*/
package buildcraft.robotics.statements;
import net.minecraft.client.renderer.texture.IIconRegister;
import buildcraft.api.statements.IActionInternal;
import buildcraft.api.statements.IStatementContainer;
import buildcraft.api.statements.IStatementParameter;
import buildcraft.api.statements.StatementParameterItemStack;
import buildcraft.core.lib.utils.StringUtils;
import buildcraft.core.statements.BCStatement;
public class ActionStationAllowCraft extends BCStatement implements IActionInternal {
public ActionStationAllowCraft() {
super("buildcraft:robot.allow_craft");
}
@Override
public String getDescription() {
return StringUtils.localize("gate.action.station.allow_craft");
}
@Override
public void registerIcons(IIconRegister iconRegister) {
icon = iconRegister.registerIcon("buildcraftrobotics:triggers/action_station_allow_craft");
}
@Override
public int maxParameters() {
return 3;
}
@Override
public IStatementParameter createParameter(int index) {
return new StatementParameterItemStack();
}
@Override
public void actionActivate(IStatementContainer source,
IStatementParameter[] parameters) {
}
}

View file

@ -13,9 +13,8 @@ import java.util.LinkedList;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.block.BlockWorkbench;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.tileentity.TileEntityFurnace;
import net.minecraftforge.common.util.ForgeDirection;
import buildcraft.BuildCraftRobotics;
@ -27,7 +26,6 @@ import buildcraft.api.statements.IStatementContainer;
import buildcraft.api.transport.IPipeTile;
import buildcraft.api.transport.IPipeTile.PipeType;
import buildcraft.robotics.RobotUtils;
import buildcraft.silicon.TileAssemblyTable;
import buildcraft.transport.TileGenericPipe;
public class RobotsActionProvider implements IActionProvider {
@ -86,12 +84,6 @@ public class RobotsActionProvider implements IActionProvider {
if (station.getRequestProvider() != null) {
result.add(BuildCraftRobotics.actionStationMachineRequestItems);
}
if (sideTile instanceof TileEntityFurnace
|| sideTile instanceof TileAssemblyTable
|| sideBlock instanceof BlockWorkbench) {
result.add(BuildCraftRobotics.actionRobotAllowCraft);
}
}
return result;