getWorld

abstract fun getWorld(key: Key): World?

Gets the loaded world with the given resource key, or null if there is no world loaded with the given resource key.

Return

the loaded world with the key, or null if not present

Parameters

key

the resource key