getInstance

abstract fun <T> getInstance(): T

Gets the server's implementation instance for this world.

The return type of this method may vary depending on the server platform:

  • For Bukkit: org.bukkit.World

  • For modded servers (Fabric/Forge): net.minecraft.server.level.ServerLevel

Return

The server's implementation object associated with this world.

Parameters

T

The expected type of the implementation object.