Mekanism-tilera-Edition/common/buildcraft/api/transport/IPipeTile.java

40 lines
1.1 KiB
Java
Raw Normal View History

2013-08-08 19:10:11 +02:00
/**
* Copyright (c) SpaceToad, 2011 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
2013-04-13 16:35:13 +02:00
* http://www.mod-buildcraft.com/MMPL-1.0.txt
*/
package buildcraft.api.transport;
2013-08-08 19:10:11 +02:00
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.ForgeDirection;
import net.minecraftforge.fluids.IFluidHandler;
2013-08-25 15:36:29 +02:00
public interface IPipeTile extends ISolidSideTile, IFluidHandler {
2013-08-08 19:10:11 +02:00
public enum PipeType {
2013-04-13 16:35:13 +02:00
2013-08-08 19:10:11 +02:00
ITEM, FLUID, POWER, STRUCTURE;
}
@Deprecated
2013-04-13 16:35:13 +02:00
IPipe getPipe();
2013-08-08 19:10:11 +02:00
PipeType getPipeType();
/**
* Offers an ItemStack for addition to the pipe. Will be rejected if the
* pipe doesn't accept items from that side.
*
* @param stack ItemStack offered for addition. Do not manipulate this!
* @param doAdd If false no actual addition should take place. Implementors
* should simulate.
* @param from Orientation the ItemStack is offered from.
* @return Amount of items used from the passed stack.
*/
int injectItem(ItemStack stack, boolean doAdd, ForgeDirection from);
2013-08-25 15:36:29 +02:00
boolean isPipeConnected(ForgeDirection with);
2013-04-13 16:35:13 +02:00
}