getNetwork

suspend fun <T : Network<T>> getNetwork(endPoint: NetworkEndPoint, networkType: NetworkType<T>, face: BlockFace): ProtoNetwork<T>?

Gets the network of endPoint at face, or null if there is no connection.


suspend fun <T : Network<T>> getNetwork(bridge: NetworkBridge, networkType: NetworkType<T>): ProtoNetwork<T>?

Gets the network of bridge of networkType, or null if there is no connection.

Throws

If the referenced network is currently being loaded.