Companion

object Companion

Functions

Link copied to clipboard
fun of(location: Location, owner: UUID): DespawnLocation

Builds a DespawnLocation from a live Bukkit Location and owner (block coords).

Link copied to clipboard
fun parse(serialized: String, owner: UUID): DespawnLocation?

Parses the x;y;z;world form for owner. Returns null (never throws) if the string is malformed — too few fields, non-integer coordinates, or an empty world name. World names are allowed to contain ; (the tail is re-joined).