toLocation

fun toLocation(): Location

Turns a SimpleLocation into a Location.

Return

The Location representation of the SimpleLocation.

Throws

If the world is not loaded.


fun toLocation(world: World): Location

Turns a SimpleLocation into a Location for the given world.

Return

The Location representation of the SimpleLocation.

Parameters

world

The world to use.