diff --git a/src/main/java/mekanism/common/multipart/PartLogisticalTransporter.java b/src/main/java/mekanism/common/multipart/PartLogisticalTransporter.java index 93f570b96..4e67a1bb2 100644 --- a/src/main/java/mekanism/common/multipart/PartLogisticalTransporter.java +++ b/src/main/java/mekanism/common/multipart/PartLogisticalTransporter.java @@ -41,14 +41,12 @@ import cpw.mods.fml.relauncher.SideOnly; import io.netty.buffer.ByteBuf; -import buildcraft.api.gates.IGate; import buildcraft.api.transport.IPipe; import buildcraft.api.transport.IPipeTile; -import buildcraft.api.transport.PipeWire; import codechicken.lib.vec.Vector3; @Interface(iface = "buildcraft.api.transport.IPipeTile", modid = "BuildCraftAPI|transport") -public class PartLogisticalTransporter extends PartSidedPipe implements ILogisticalTransporter, IPipeTile +public class PartLogisticalTransporter extends PartSidedPipe implements ILogisticalTransporter { public static TransmitterIcons transporterIcons = new TransmitterIcons(3, 2); @@ -62,8 +60,6 @@ public class PartLogisticalTransporter extends PartSidedPipe implements ILogisti public Set needsSync = new HashSet(); - public TransporterPipeProxy pipe = new TransporterPipeProxy(); - @Override public String getType() { @@ -752,104 +748,4 @@ public class PartLogisticalTransporter extends PartSidedPipe implements ILogisti { return 1; } - - @Override - @Method(modid = "BuildCraftAPI|transport") - public int injectItem(ItemStack stack, boolean doAdd, ForgeDirection from, buildcraft.api.core.EnumColor color) { - return 0; - } - - @Override - @Method(modid = "BuildCraftAPI|transport") - public int injectItem(ItemStack stack, boolean doAdd, ForgeDirection from) - { - if(doAdd) - { - TileEntity tile = Coord4D.get(tile()).getFromSide(from).getTileEntity(world()); - - ItemStack rejects = TransporterUtils.insert(tile, this, stack, null, true, 0); - return TransporterManager.getToUse(stack, rejects).stackSize; - } - - return 0; - } - - @Override - @Method(modid = "BuildCraftAPI|transport") - public PipeType getPipeType() - { - return PipeType.ITEM; - } - - @Override - @Method(modid = "BuildCraftAPI|transport") - public boolean isPipeConnected(ForgeDirection with) - { - return connectionMapContainsSide(getAllCurrentConnections(), with); - } - - @Override - @Method(modid = "BuildCraftAPI|transport") - public TileEntity getAdjacentTile(ForgeDirection dir) { - return Coord4D.get(tile()).getFromSide(dir).getTileEntity(world()); - } - - @Override - @Method(modid = "BuildCraftAPI|transport") - public IPipe getPipe() { - return pipe; - } - - @Interface(iface = "buildcraft.api.transport.IPipe", modid = "BuildCraftAPI|transport") - public class TransporterPipeProxy implements IPipe - { - - @Override - @Method(modid = "BuildCraftAPI|transport") - public int x() { - return PartLogisticalTransporter.this.x(); - } - - @Override - @Method(modid = "BuildCraftAPI|transport") - public int y() { - return PartLogisticalTransporter.this.y(); - } - - @Override - @Method(modid = "BuildCraftAPI|transport") - public int z() { - return PartLogisticalTransporter.this.y(); - } - - @Override - @Method(modid = "BuildCraftAPI|transport") - public IPipeTile getTile() { - return (IPipeTile)tile(); - } - - @Override - @Method(modid = "BuildCraftAPI|transport") - public IGate getGate(ForgeDirection side) { - return null; - } - - @Override - @Method(modid = "BuildCraftAPI|transport") - public boolean hasGate(ForgeDirection side) { - return false; - } - - @Override - @Method(modid = "BuildCraftAPI|transport") - public boolean isWired(PipeWire wire) { - return false; - } - - @Override - @Method(modid = "BuildCraftAPI|transport") - public boolean isWireActive(PipeWire wire) { - return false; - } - } }