blob: 2f2914f03bc8e60d6d169a0fb22236be89841c90 [file] [log] [blame] [raw]
package li.cil.oc.api
import li.cil.oc.server.computer.Network
import net.minecraft.world.IBlockAccess
/**
* Provides convenience methods for interacting with component networks.
*/
object NetworkAPI {
/**
* Tries to add a tile entity network node at the specified coordinates to adjacent networks.
*
* @param world the world the tile entity lives in.
* @param x the X coordinate of the tile entity.
* @param y the Y coordinate of the tile entity.
* @param z the Z coordinate of the tile entity.
*/
def joinOrCreateNetwork(world: IBlockAccess, x: Int, y: Int, z: Int) =
// TODO reflection
Network.joinOrCreateNetwork(world, x, y, z)
}