name

abstract val name: String

Gets the platform-specific name of this world.

The returned value differs between platforms:

  • For Bukkit: the world folder name, e.g. "world_nether"

  • For modded servers (Fabric/Forge): the dimension key, e.g. "minecraft:the_nether"

  • For Minestom: the instance uuid

Prefer key for anything that has to be portable between platforms or persisted.