Changed ITileConnector

added a sub enum system to better ID connections.
This commit is contained in:
DarkGuardsman 2013-09-04 18:44:35 -04:00
parent 08c51bf14d
commit 1065f3e66e
2 changed files with 20 additions and 10 deletions

View file

@ -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();
}
}

View file

@ -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);
}