loadWorld

abstract fun loadWorld(key: Key): CompletableFuture<out World?>

Loads a world by its resource key, if there is a world that can be loaded from the given key.

If no world can be loaded from the given key, this returns a null result.

Return

the loaded world, or null if no world could be loaded from the key

Parameters

key

the resource key for the world