Appearance
@loontail/minecraft-kit v0.8.14 / PlayerUuid
Type alias: PlayerUuid
ts
type PlayerUuid: string & {
__brand: "PlayerUuid";
};Branded Minecraft player UUID. Construct via asPlayerUuid (exported from the package root) — the brand prevents accidentally passing a Minecraft version id, an Xbox userhash, or another opaque string where the launch composer expects a player UUID.
offlineUuidFor already returns this brand; reach for asPlayerUuid when loading a saved UUID from disk or when the host environment supplies one.
Example
ts
import { asPlayerUuid, type PlayerUuid } from "@loontail/minecraft-kit";
const uuid: PlayerUuid = asPlayerUuid(await storage.load("player-uuid"));Type declaration
| Member | Type |
|---|---|
__brand | "PlayerUuid" |