Record Class MinecraftTexturesPayload
java.lang.Object
java.lang.Record
com.mojang.authlib.yggdrasil.response.MinecraftTexturesPayload
public record MinecraftTexturesPayload(long timestamp, UUID profileId, String profileName, boolean isPublic, Map<MinecraftProfileTexture.Type, MinecraftProfileTexture> textures)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theisPublicrecord component.private final UUIDThe field for theprofileIdrecord component.private final StringThe field for theprofileNamerecord component.private final Map<MinecraftProfileTexture.Type, MinecraftProfileTexture> The field for thetexturesrecord component.private final longThe field for thetimestamprecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMinecraftTexturesPayload(long timestamp, UUID profileId, String profileName, boolean isPublic, Map<MinecraftProfileTexture.Type, MinecraftProfileTexture> textures) Creates an instance of aMinecraftTexturesPayloadrecord 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.booleanisPublic()Returns the value of theisPublicrecord component.Returns the value of theprofileIdrecord component.Returns the value of theprofileNamerecord component.textures()Returns the value of thetexturesrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
timestamp
@SerializedName("timestamp") private final long timestampThe field for thetimestamprecord component. -
profileId
The field for theprofileIdrecord component. -
profileName
The field for theprofileNamerecord component. -
isPublic
@SerializedName("isPublic") private final boolean isPublicThe field for theisPublicrecord component. -
textures
@SerializedName("textures") private final Map<MinecraftProfileTexture.Type, MinecraftProfileTexture> texturesThe field for thetexturesrecord component.
-
-
Constructor Details
-
MinecraftTexturesPayload
public MinecraftTexturesPayload(long timestamp, UUID profileId, String profileName, boolean isPublic, Map<MinecraftProfileTexture.Type, MinecraftProfileTexture> textures) Creates an instance of aMinecraftTexturesPayloadrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentprofileId- the value for theprofileIdrecord componentprofileName- the value for theprofileNamerecord componentisPublic- the value for theisPublicrecord componenttextures- the value for thetexturesrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
timestamp
@SerializedName("timestamp") public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
profileId
Returns the value of theprofileIdrecord component.- Returns:
- the value of the
profileIdrecord component
-
profileName
Returns the value of theprofileNamerecord component.- Returns:
- the value of the
profileNamerecord component
-
isPublic
@SerializedName("isPublic") public boolean isPublic()Returns the value of theisPublicrecord component.- Returns:
- the value of the
isPublicrecord component
-
textures
@SerializedName("textures") public Map<MinecraftProfileTexture.Type, MinecraftProfileTexture> textures()Returns the value of thetexturesrecord component.- Returns:
- the value of the
texturesrecord component
-