AttributeValue

Values for use in player attribute key-value pairs. This object lets you specify an attribute value using any of the valid data types: string, number, string array, or data map. Each AttributeValue object can use only one of the available properties.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val n: Double?

For number values, expressed as double.

Link copied to clipboard
val s: String?

For single string values. Maximum string length is 100 characters.

Link copied to clipboard

For a map of up to 10 data type:value pairs. Maximum length for each string value is 100 characters.

Link copied to clipboard
val sl: List<String>?

For a list of up to 100 strings. Maximum length for each string is 100 characters. Duplicate values are not recognized; all occurrences of the repeated value after the first of a repeated value are ignored.

Functions

Link copied to clipboard
inline fun copy(block: AttributeValue.Builder.() -> Unit = {}): AttributeValue
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String