Record Class UserApiService.UserProperties
java.lang.Object
java.lang.Record
com.mojang.authlib.minecraft.UserApiService.UserProperties
- Enclosing interface:
UserApiService
public static record UserApiService.UserProperties(Set<UserApiService.UserFlag> flags, Map<String, BanDetails> bannedScopes)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, BanDetails> The field for thebannedScopesrecord component.private final Set<UserApiService.UserFlag> The field for theflagsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUserProperties(Set<UserApiService.UserFlag> flags, Map<String, BanDetails> bannedScopes) Creates an instance of aUserPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebannedScopesrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanflag(UserApiService.UserFlag flag) flags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
flags
The field for theflagsrecord component. -
bannedScopes
The field for thebannedScopesrecord component.
-
-
Constructor Details
-
UserProperties
Creates an instance of aUserPropertiesrecord class.- Parameters:
flags- the value for theflagsrecord componentbannedScopes- the value for thebannedScopesrecord component
-
-
Method Details
-
flag
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
flags
Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
bannedScopes
Returns the value of thebannedScopesrecord component.- Returns:
- the value of the
bannedScopesrecord component
-