From 1065f3e66e44f84921458fcdd5c005a541db0588 Mon Sep 17 00:00:00 2001 From: DarkGuardsman Date: Wed, 4 Sep 2013 18:44:35 -0400 Subject: [PATCH] Changed ITileConnector added a sub enum system to better ID connections. --- src/dark/api/parts/ITileConnector.java | 20 ++++++++++++++++++++ src/dark/core/interfaces/ITileConnector.java | 10 ---------- 2 files changed, 20 insertions(+), 10 deletions(-) create mode 100644 src/dark/api/parts/ITileConnector.java delete mode 100644 src/dark/core/interfaces/ITileConnector.java diff --git a/src/dark/api/parts/ITileConnector.java b/src/dark/api/parts/ITileConnector.java new file mode 100644 index 000000000..124f2ff13 --- /dev/null +++ b/src/dark/api/parts/ITileConnector.java @@ -0,0 +1,20 @@ +package dark.api.parts; + +import net.minecraftforge.common.ForgeDirection; + +public interface ITileConnector +{ + /** Can this tile connect on the given side */ + public boolean canTileConnect(Connection type, ForgeDirection dir); + + public static enum Connection + { + Eletricity(), + FLUIDS(), + ITEMS(), + DATA(), + TILE(), + NETWORK(); + + } +} diff --git a/src/dark/core/interfaces/ITileConnector.java b/src/dark/core/interfaces/ITileConnector.java deleted file mode 100644 index e5e368b7e..000000000 --- a/src/dark/core/interfaces/ITileConnector.java +++ /dev/null @@ -1,10 +0,0 @@ -package dark.core.interfaces; - -import net.minecraft.tileentity.TileEntity; -import net.minecraftforge.common.ForgeDirection; - -public interface ITileConnector -{ - /** Can this tile connect on the given side */ - public boolean canTileConnect(TileEntity entity, ForgeDirection dir); -}