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

30 lines
804 B
Java
Raw Normal View History

2013-08-25 15:36:29 +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-25 15:36:29 +02:00
import buildcraft.api.transport.IPipeTile.PipeType;
2013-04-13 16:35:13 +02:00
import net.minecraftforge.common.ForgeDirection;
public interface IPipeConnection {
2013-08-25 15:36:29 +02:00
enum ConnectOverride {
CONNECT, DISCONNECT, DEFAULT
};
/**
* Allows you to override pipe connection logic.
*
* @param type
* @param with
* @return CONNECT to force a connection, DISCONNECT to force no connection,
* and DEFAULT to let the pipe decide.
*/
public ConnectOverride overridePipeConnection(PipeType type, ForgeDirection with);
2013-04-13 16:35:13 +02:00
}