mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-22 05:02:25 +00:00
25 lines
707 B
Java
25 lines
707 B
Java
package cofh.api.inventory;
|
|
|
|
import net.minecraftforge.common.util.ForgeDirection;
|
|
|
|
/**
|
|
* Implement this interface on TileEntities which should connect to item transportation blocks.
|
|
*/
|
|
public interface IInventoryConnection {
|
|
|
|
/**
|
|
* @param from
|
|
* Side to which a connector would connect
|
|
* @return DEFAULT if the connector should decide how to connect; FORCE if the connector should always connect; DENY if the connector should never connect.
|
|
*/
|
|
public ConnectionType canConnectInventory(ForgeDirection from);
|
|
|
|
public static enum ConnectionType {
|
|
DEFAULT, FORCE, DENY;
|
|
|
|
public final boolean canConnect = ordinal() != 2;
|
|
public final boolean forceConnect = ordinal() == 1;
|
|
}
|
|
|
|
}
|