Logistics Pipes

Logistics Pipes

13M Downloads

[Request] API for Tile Entities which can connect spatially separate logistics pipes

DarkholmeTenk opened this issue ยท 14 comments

commented

I was hoping for something along the lines of

public interface ILogisticsConnector
{
  /**@return the coordinates of all of the pipes which can be reached through this connector**/
  public Set<Coordinate> getConnectedPipes();
}

for use in my TARDIS mod. Basically, I want to be able to connect at least 2 spatially distant logistics pipes systems without having to have 2 power providers and inventory connectors. Apologies if this is already doable, but I couldn't spot any way to do it :P

commented

not a bad idea ๐Ÿ‘

commented

I can only say: ๐Ÿ‘

commented

Do we still have the Code for the old Teleport Pipes mod? would probably be good to take a look at for this

commented

I was thinking more along the lines of ILogisticsConnector provides a set of other logistics pipes positions and the logistics network teleports items to the most appropriate one. As far as I remember, teleport pipes acted like dumb buildcraft pipes and just routed to a random one.

commented

Right, because there was no logic in teleporting items in AP.
This on the other side makes us teleport the item basically.
What about a second Method, but on your side:

/** @returns true, if the item was accepted and false, if rejected */
public boolean passItemStack(ItemStack itemstack, Coordinate targetPipe);

And you can inject items via buildcraft.api.transport.IPipeTile#injectItem(ItemStack, boolean, ForgeDirection, EnumColor), where IPipeTile is on our LogisticsTileGenericPipe, the basic TileEntity. If you do not want to include the BuildCraft API, just use Reflection to get the method injectItem from our TileEntity

commented

Seems reasonable, on top of the other side.
What about transferring LP and RF/EU power?

commented

๐Ÿ‘ Sounds good, been using this version of Logipipes since 1.4.5 and I miss my big distant logistics system :3

commented

That's another question. With allowing that the interfaces will need to grow a little more. I put this on hold and will talk with @davboecki about implementing the interfaces with power transfer. We will be posting a comment, when we got something worked out.

commented

@DarkholmeTenk if you really need that ability, you CAN achieve this by using Thermal Expansion Tesseracts

commented

@Bitterholz that is not the point. He wants integration with his own mod. This is not about doing something ingame.

commented

Well he stated he misses Distance Logistics...wich tesseractsI assume is Ingame.

commented

But Anyways the API is a great idea, makes Integration far easier

commented

Well the TARDIS can already handle AE networks, but that's so boring looking compared to logistics :3

commented

I am working on API code at the moment to finally make this happen. It definitely is not as easy. Also we don't have any hard BC dependency anymore, so we wont use their functions.