withProperty

@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.

Return

a new game profile

Parameters

property

the property to add