getConnectedNode

suspend fun getConnectedNode(node: NetworkNode, face: BlockFace): NetworkNode?

Gets the NetworkNode connected to node at face, or null if there is no connection.

See also

Throws

If there is no data for node.


suspend fun getConnectedNode(node: NetworkNode, networkType: NetworkType<*>, face: BlockFace): NetworkNode?

Gets the NetworkNode connected to node at face using networkType, or null if there is no connection.

See also

Throws

If there is no data for node.