Record Class UserAttributesResponse.Privileges
java.lang.Object
java.lang.Record
com.mojang.authlib.yggdrasil.response.UserAttributesResponse.Privileges
- Enclosing class:
UserAttributesResponse
public static record UserAttributesResponse.Privileges(@Nullable UserAttributesResponse.Privileges.Privilege onlineChat, @Nullable UserAttributesResponse.Privileges.Privilege multiplayerServer, @Nullable UserAttributesResponse.Privileges.Privilege multiplayerRealms, @Nullable UserAttributesResponse.Privileges.Privilege telemetry, @Nullable UserAttributesResponse.Privileges.Privilege optionalTelemetry)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UserAttributesResponse.Privileges.PrivilegeThe field for themultiplayerRealmsrecord component.private final UserAttributesResponse.Privileges.PrivilegeThe field for themultiplayerServerrecord component.private final UserAttributesResponse.Privileges.PrivilegeThe field for theonlineChatrecord component.private final UserAttributesResponse.Privileges.PrivilegeThe field for theoptionalTelemetryrecord component.private final UserAttributesResponse.Privileges.PrivilegeThe field for thetelemetryrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPrivileges(UserAttributesResponse.Privileges.Privilege onlineChat, UserAttributesResponse.Privileges.Privilege multiplayerServer, UserAttributesResponse.Privileges.Privilege multiplayerRealms, UserAttributesResponse.Privileges.Privilege telemetry, UserAttributesResponse.Privileges.Privilege optionalTelemetry) Creates an instance of aPrivilegesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanbooleanbooleanbooleanbooleanfinal inthashCode()Returns a hash code value for this object.Returns the value of themultiplayerRealmsrecord component.Returns the value of themultiplayerServerrecord component.Returns the value of theonlineChatrecord component.Returns the value of theoptionalTelemetryrecord component.Returns the value of thetelemetryrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
onlineChat
@SerializedName("onlineChat") @Nullable private final UserAttributesResponse.Privileges.Privilege onlineChatThe field for theonlineChatrecord component. -
multiplayerServer
@SerializedName("multiplayerServer") @Nullable private final UserAttributesResponse.Privileges.Privilege multiplayerServerThe field for themultiplayerServerrecord component. -
multiplayerRealms
@SerializedName("multiplayerRealms") @Nullable private final UserAttributesResponse.Privileges.Privilege multiplayerRealmsThe field for themultiplayerRealmsrecord component. -
telemetry
@SerializedName("telemetry") @Nullable private final UserAttributesResponse.Privileges.Privilege telemetryThe field for thetelemetryrecord component. -
optionalTelemetry
@SerializedName("optionalTelemetry") @Nullable private final UserAttributesResponse.Privileges.Privilege optionalTelemetryThe field for theoptionalTelemetryrecord component.
-
-
Constructor Details
-
Privileges
public Privileges(@Nullable UserAttributesResponse.Privileges.Privilege onlineChat, @Nullable UserAttributesResponse.Privileges.Privilege multiplayerServer, @Nullable UserAttributesResponse.Privileges.Privilege multiplayerRealms, @Nullable UserAttributesResponse.Privileges.Privilege telemetry, @Nullable UserAttributesResponse.Privileges.Privilege optionalTelemetry) Creates an instance of aPrivilegesrecord class.- Parameters:
onlineChat- the value for theonlineChatrecord componentmultiplayerServer- the value for themultiplayerServerrecord componentmultiplayerRealms- the value for themultiplayerRealmsrecord componenttelemetry- the value for thetelemetryrecord componentoptionalTelemetry- the value for theoptionalTelemetryrecord component
-
-
Method Details
-
getOnlineChat
public boolean getOnlineChat() -
getMultiplayerServer
public boolean getMultiplayerServer() -
getMultiplayerRealms
public boolean getMultiplayerRealms() -
getTelemetry
public boolean getTelemetry() -
getOptionalTelemetry
public boolean getOptionalTelemetry() -
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). -
onlineChat
@SerializedName("onlineChat") @Nullable public UserAttributesResponse.Privileges.Privilege onlineChat()Returns the value of theonlineChatrecord component.- Returns:
- the value of the
onlineChatrecord component
-
multiplayerServer
@SerializedName("multiplayerServer") @Nullable public UserAttributesResponse.Privileges.Privilege multiplayerServer()Returns the value of themultiplayerServerrecord component.- Returns:
- the value of the
multiplayerServerrecord component
-
multiplayerRealms
@SerializedName("multiplayerRealms") @Nullable public UserAttributesResponse.Privileges.Privilege multiplayerRealms()Returns the value of themultiplayerRealmsrecord component.- Returns:
- the value of the
multiplayerRealmsrecord component
-
telemetry
@SerializedName("telemetry") @Nullable public UserAttributesResponse.Privileges.Privilege telemetry()Returns the value of thetelemetryrecord component.- Returns:
- the value of the
telemetryrecord component
-
optionalTelemetry
@SerializedName("optionalTelemetry") @Nullable public UserAttributesResponse.Privileges.Privilege optionalTelemetry()Returns the value of theoptionalTelemetryrecord component.- Returns:
- the value of the
optionalTelemetryrecord component
-