diff options
author | Martin Robertz <dream-master@gmx.net> | 2017-11-22 20:14:24 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-22 20:14:24 +0700 |
commit | 3662538deaff81e5d2a6e3426965c040c211ee3e (patch) | |
tree | 32007b750406d18d82aa2e27c7a2637b497208a2 /src/main/java/gregtech/api/interfaces | |
parent | 5e64f7437e73bdcf79ebe7aef3ee02b245ce8503 (diff) | |
parent | 9ba5acc8620aa8ebcd8ed2549106aaa6ee699602 (diff) | |
download | GT5-Unofficial-3662538deaff81e5d2a6e3426965c040c211ee3e.tar.gz GT5-Unofficial-3662538deaff81e5d2a6e3426965c040c211ee3e.tar.bz2 GT5-Unofficial-3662538deaff81e5d2a6e3426965c040c211ee3e.zip |
Merge pull request #53 from Antifluxfield/GTNH-GT6_styled_pipes
GT6 styled pipes
Diffstat (limited to 'src/main/java/gregtech/api/interfaces')
-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..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);
+}
|