aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java
blob: 96c03bbd6db71ef58f3af6d12bd713faafa213d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package gregtech.api.interfaces.metatileentity;

/**
 * For pipes, wires, and other MetaTiles which need to be decided whether they should connect to the block at each side.
 */
public interface IConnectable {
	/**
	 * Try to connect to the Block at the specified side
	 * returns the connection state. Non-positive values for failed, others for succeeded.
	 */
	public int connect(byte aSide);
	/**
	 * Try to disconnect to the Block at the specified side
	 */
	public void disconnect(byte aSide);

	public boolean isConnectedAtSide(int aSide);
}