2013-11-15 03:58:32 +01:00
|
|
|
package cofh.api.transport;
|
|
|
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraftforge.common.ForgeDirection;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This interface is implemented on Item Conduits. Use it to attempt to eject items into an entry point.
|
|
|
|
*
|
|
|
|
* @author Zeldo Kavira
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public interface IItemConduit {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Insert items into the conduit. Returns the ItemStack left (null if fully routed). Will only accept items if they have an valid destination.
|
2013-11-30 07:02:44 +01:00
|
|
|
*
|
|
|
|
* Pass the conduit the side *opposite* the one you are ejecting from!
|
2013-11-15 03:58:32 +01:00
|
|
|
*/
|
2013-11-30 07:02:44 +01:00
|
|
|
public ItemStack sendItems(ItemStack item, ForgeDirection from);
|
2013-11-15 03:58:32 +01:00
|
|
|
|
|
|
|
}
|