2013-04-13 16:35:13 +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
|
|
|
|
* http://www.mod-buildcraft.com/MMPL-1.0.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
package buildcraft.api.transport;
|
|
|
|
|
|
|
|
import net.minecraft.tileentity.TileEntity;
|
|
|
|
|
|
|
|
public interface IPipe {
|
|
|
|
|
|
|
|
enum DrawingState {
|
|
|
|
DrawingPipe, DrawingRedWire, DrawingBlueWire, DrawingGreenWire, DrawingYellowWire, DrawingGate
|
|
|
|
}
|
|
|
|
|
|
|
|
enum WireColor {
|
|
|
|
Red, Blue, Green, Yellow;
|
|
|
|
|
|
|
|
public WireColor reverse() {
|
|
|
|
switch (this) {
|
|
|
|
case Red:
|
|
|
|
return Yellow;
|
|
|
|
case Blue:
|
|
|
|
return Green;
|
|
|
|
case Green:
|
|
|
|
return Blue;
|
|
|
|
default:
|
|
|
|
return Red;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isWired(WireColor color);
|
|
|
|
|
2013-08-08 19:10:11 +02:00
|
|
|
public boolean hasGate();
|
2013-04-13 16:35:13 +02:00
|
|
|
|
|
|
|
public TileEntity getContainer();
|
|
|
|
|
|
|
|
public boolean isWireConnectedTo(TileEntity tile, WireColor color);
|
|
|
|
|
|
|
|
}
|