GameProfile

interface GameProfile

The profile of an authenticated player.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@ApiStatus.Internal
interface Factory

Functions

Link copied to clipboard
@Contract(value = "_ -> new", pure = true)
abstract fun withoutProperty(index: Int): GameProfile

Creates a new game profile with the property at the given index removed from the list of properties.

@Contract(value = "_ -> new", pure = true)
abstract fun withoutProperty(property: ProfileProperty): GameProfile

Creates a new game profile with the given property removed from the list of properties.

Link copied to clipboard
@Contract(value = "_ -> new", pure = true)
abstract fun withProperties(properties: Iterable<ProfileProperty>): GameProfile

Creates a new game profile with the given properties.

Link copied to clipboard
@Contract(value = "_ -> new", pure = true)
abstract fun withProperty(property: ProfileProperty): GameProfile

Creates a new game profile with the given property added to the list of properties.

Properties

Link copied to clipboard
@get:JvmName(name = "name")
abstract val name: String

The name of the profile.

Link copied to clipboard
@get:JvmName(name = "properties")
abstract val properties: @Unmodifiable List<ProfileProperty>

All of the properties for this profile.

Link copied to clipboard
@get:JvmName(name = "uuid")
abstract val uuid: UUID

The UUID of the profile.