diff options
author | Antifluxfield <lyj_299792458@163.com> | 2017-10-30 09:18:40 +0800 |
---|---|---|
committer | Antifluxfield <lyj_299792458@163.com> | 2017-10-30 09:18:40 +0800 |
commit | 22c2f16509e7c1ddbd960275a7f442643e3c9da8 (patch) | |
tree | 0e57fca9e1d7803e5a9dd5af4bd92d22de448245 /src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java | |
parent | 2d8df8d14518d41ff075a63084950ff429a9b09b (diff) | |
download | GT5-Unofficial-22c2f16509e7c1ddbd960275a7f442643e3c9da8.tar.gz GT5-Unofficial-22c2f16509e7c1ddbd960275a7f442643e3c9da8.tar.bz2 GT5-Unofficial-22c2f16509e7c1ddbd960275a7f442643e3c9da8.zip |
GT6 styled pipe and wire connection
Diffstat (limited to 'src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java')
-rw-r--r-- | src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java b/src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java new file mode 100644 index 0000000000..db8e812cf8 --- /dev/null +++ b/src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java @@ -0,0 +1,16 @@ +package gregtech.api.interfaces.metatileentity;
+
+/**
+ * For pipes, wires, and other MetaTiles which should 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);
+}
|