Package-level declarations

Types

Link copied to clipboard
data class ResourceId(val namespace: String, val path: String)

Immutable resource-pack identifier shared by client and server code.

Link copied to clipboard
expect class Uuid

Immutable universally unique identifier backed by Java UUID on JVM and Kotlin Uuid on JavaScript. Use parseUuid to create identifiers from canonical UUID text in shared code.

actual typealias Uuid = kotlin.uuid.Uuid

Uses Kotlin's standard UUID representation on JavaScript.

actual typealias Uuid = UUID
typealias Uuid = UUID

Keeps existing JVM UUID constructor and property descriptors binary compatible.

Functions

Link copied to clipboard
expect fun parseUuid(value: String): Uuid

Parses an identifier with the platform's standard UUID parser. Canonical dashed hexadecimal UUIDs are accepted on every target; invalid text throws IllegalArgumentException.

actual fun parseUuid(value: String): Uuid

Parses an identifier using Kotlin's standard UUID parser.

actual fun parseUuid(value: String): Uuid

Parses an identifier using the existing JVM UUID contract.