Record Class MinecraftProfileTextures
java.lang.Object
java.lang.Record
com.mojang.authlib.minecraft.MinecraftProfileTextures
public record MinecraftProfileTextures(@Nullable MinecraftProfileTexture skin, @Nullable MinecraftProfileTexture cape, @Nullable MinecraftProfileTexture elytra, SignatureState signatureState)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MinecraftProfileTextureThe field for thecaperecord component.private final MinecraftProfileTextureThe field for theelytrarecord component.static final MinecraftProfileTexturesprivate final SignatureStateThe field for thesignatureStaterecord component.private final MinecraftProfileTextureThe field for theskinrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMinecraftProfileTextures(MinecraftProfileTexture skin, MinecraftProfileTexture cape, MinecraftProfileTexture elytra, SignatureState signatureState) Creates an instance of aMinecraftProfileTexturesrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncape()Returns the value of thecaperecord component.elytra()Returns the value of theelytrarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesignatureStaterecord component.skin()Returns the value of theskinrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
skin
The field for theskinrecord component. -
cape
The field for thecaperecord component. -
elytra
The field for theelytrarecord component. -
signatureState
The field for thesignatureStaterecord component. -
EMPTY
-
-
Constructor Details
-
MinecraftProfileTextures
public MinecraftProfileTextures(@Nullable MinecraftProfileTexture skin, @Nullable MinecraftProfileTexture cape, @Nullable MinecraftProfileTexture elytra, SignatureState signatureState) Creates an instance of aMinecraftProfileTexturesrecord class.- Parameters:
skin- the value for theskinrecord componentcape- the value for thecaperecord componentelytra- the value for theelytrarecord componentsignatureState- the value for thesignatureStaterecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
skin
Returns the value of theskinrecord component.- Returns:
- the value of the
skinrecord component
-
cape
Returns the value of thecaperecord component.- Returns:
- the value of the
caperecord component
-
elytra
Returns the value of theelytrarecord component.- Returns:
- the value of the
elytrarecord component
-
signatureState
Returns the value of thesignatureStaterecord component.- Returns:
- the value of the
signatureStaterecord component
-