Record Class MinecraftProfilePropertiesResponse
java.lang.Object
java.lang.Record
com.mojang.authlib.yggdrasil.response.MinecraftProfilePropertiesResponse
public record MinecraftProfilePropertiesResponse(UUID id, String name, PropertyMap properties, @Nullable Set<ProfileAction> profileActions)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UUIDThe field for theidrecord component.private final StringThe field for thenamerecord component.private final Set<ProfileAction> The field for theprofileActionsrecord component.private final PropertyMapThe field for thepropertiesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMinecraftProfilePropertiesResponse(UUID id, String name, PropertyMap properties, Set<ProfileAction> profileActions) Creates an instance of aMinecraftProfilePropertiesResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.profile()Returns the value of theprofileActionsrecord component.Returns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
name
The field for thenamerecord component. -
properties
The field for thepropertiesrecord component. -
profileActions
The field for theprofileActionsrecord component.
-
-
Constructor Details
-
MinecraftProfilePropertiesResponse
public MinecraftProfilePropertiesResponse(UUID id, String name, PropertyMap properties, @Nullable Set<ProfileAction> profileActions) Creates an instance of aMinecraftProfilePropertiesResponserecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentproperties- the value for thepropertiesrecord componentprofileActions- the value for theprofileActionsrecord component
-
-
Method Details
-
profile
-
profileActions
Returns the value of theprofileActionsrecord component.- Returns:
- the value of the
profileActionsrecord component
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-