aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces/metatileentity
diff options
context:
space:
mode:
authorAntifluxfield <lyj_299792458@163.com>2017-11-13 22:08:53 +0800
committerAntifluxfield <lyj_299792458@163.com>2017-11-13 22:08:53 +0800
commit9ba5acc8620aa8ebcd8ed2549106aaa6ee699602 (patch)
tree7273213118a68b08e69d1c8a2891a8398cb7c27f /src/main/java/gregtech/api/interfaces/metatileentity
parentcf25fe4f6a37b4ad10bfc95f2549901914b0162b (diff)
downloadGT5-Unofficial-9ba5acc8620aa8ebcd8ed2549106aaa6ee699602.tar.gz
GT5-Unofficial-9ba5acc8620aa8ebcd8ed2549106aaa6ee699602.tar.bz2
GT5-Unofficial-9ba5acc8620aa8ebcd8ed2549106aaa6ee699602.zip
GT6 styled pipes
Diffstat (limited to 'src/main/java/gregtech/api/interfaces/metatileentity')
-rw-r--r--src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java16
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..c1391371b9
--- /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 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);
+}