Changed ITileConnector
added a sub enum system to better ID connections.
This commit is contained in:
parent
08c51bf14d
commit
1065f3e66e
2 changed files with 20 additions and 10 deletions
20
src/dark/api/parts/ITileConnector.java
Normal file
20
src/dark/api/parts/ITileConnector.java
Normal 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();
|
||||
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
Loading…
Reference in a new issue