This commit is contained in:
Robert Seifert 2013-05-25 23:51:19 -04:00
parent 5d56a519a6
commit 8e11878c0a
6 changed files with 6 additions and 11 deletions

View file

@ -15,6 +15,8 @@ public interface IArmbotUseable
* touching.
*
* @param armbot - The Armbot instance.
*
* @return true if the use was completed correctly
*/
public boolean onUse(IArmbot armbot, String[] args);

View file

@ -2,7 +2,6 @@ package assemblyline.common.armbot.command;
import java.util.Iterator;
import universalelectricity.core.vector.Vector3;
import net.minecraft.inventory.ISidedInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;

View file

@ -1,6 +1,5 @@
package assemblyline.common.armbot.command;
import net.minecraft.block.Block;
import net.minecraft.inventory.ISidedInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
@ -82,7 +81,7 @@ public class CommandTake extends Command
@Override
public String toString()
{
return "Take " + (stack != null ? stack.toString() : "1x???@??? ")+this.tileEntity.getGrabbedItems().size();
return "Take " + (stack != null ? stack.toString() : "1x???@??? ");
}
@Override

View file

@ -3,7 +3,6 @@ package assemblyline.common.armbot.command;
import net.minecraft.block.Block;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.ISidedInventory;
import assemblyline.api.IArmbotUseable;
public class CommandUse extends Command
@ -57,7 +56,9 @@ public class CommandUse extends Command
this.curTimes++;
if (this.curTimes >= this.times)
{
return false;
}
return true;
}

View file

@ -9,11 +9,6 @@ import net.minecraft.nbt.NBTTagList;
import net.minecraft.network.INetworkManager;
import net.minecraft.network.packet.Packet;
import net.minecraft.network.packet.Packet250CustomPayload;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.tileentity.TileEntityHopper;
import net.minecraftforge.common.ForgeDirection;
import universalelectricity.core.vector.Vector3;
import universalelectricity.core.vector.VectorHelper;
import universalelectricity.prefab.implement.ITier;
import universalelectricity.prefab.network.IPacketReceiver;
import universalelectricity.prefab.network.PacketManager;

View file

@ -1,7 +1,6 @@
package assemblyline.common.imprinter;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
@ -15,7 +14,6 @@ import net.minecraft.network.INetworkManager;
import net.minecraft.network.packet.Packet;
import net.minecraft.network.packet.Packet250CustomPayload;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.tileentity.TileEntityChest;
import net.minecraftforge.common.ForgeDirection;
import universalelectricity.core.vector.Vector3;
import universalelectricity.core.vector.VectorHelper;
@ -428,6 +426,7 @@ public class TileEntityImprinter extends TileEntityAdvanced implements ISidedInv
armbot.grabItem(this.imprinterMatrix[craftingOutputSlot].copy());
this.onPickUpFromSlot(null, 2, this.imprinterMatrix[craftingOutputSlot]);
this.imprinterMatrix[craftingOutputSlot] = null;
return true;
}
return false;