get

operator fun <T : Any> Attributes.get(key: AttributeKey<T>): T

Gets a value of the attribute for the specified key or throws an IllegalStateException if key does not exist