20 lines
469 B
Java
20 lines
469 B
Java
package universalelectricity.api.net;
|
|
|
|
import net.minecraftforge.common.util.ForgeDirection;
|
|
|
|
/**
|
|
* @author Calclavia
|
|
*
|
|
*/
|
|
public interface IConnectable
|
|
{
|
|
/**
|
|
* Can this object connect with another?
|
|
*
|
|
* @param from - The direction the connection is coming from.
|
|
* @param source - The source calling canConnect onto this object.
|
|
* @return Return true, if the connection is possible.
|
|
*/
|
|
public boolean canConnect(ForgeDirection from, Object source);
|
|
}
|