diff options
author | Blood-Asp <bloodasphendrik@gmail.com> | 2017-11-25 18:45:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-25 18:45:33 +0100 |
commit | 7cc77f5abfce652c50f7876af236dc057a0ce209 (patch) | |
tree | 9ad3fcaef69c67c9451413a0ab958c2472cd8365 /src/main/java/gregtech/api/interfaces/metatileentity | |
parent | 1c9c9af45bfa46278ed4840c3c6ae1459879d2fe (diff) | |
parent | 9ea8a856090db86512b0b20e684112c632ac1fb2 (diff) | |
download | GT5-Unofficial-7cc77f5abfce652c50f7876af236dc057a0ce209.tar.gz GT5-Unofficial-7cc77f5abfce652c50f7876af236dc057a0ce209.tar.bz2 GT5-Unofficial-7cc77f5abfce652c50f7876af236dc057a0ce209.zip |
Merge pull request #1264 from Antifluxfield/GT6-styled_pipes
GT6 Styled Pipes & Cables
Diffstat (limited to 'src/main/java/gregtech/api/interfaces/metatileentity')
-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);
+}
|