Package net.minecraft.client.resources
Record Class SkinManager.TextureInfo
java.lang.Object
java.lang.Record
net.minecraft.client.resources.SkinManager.TextureInfo
- Enclosing class:
- SkinManager
static record SkinManager.TextureInfo(@Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture skin, @Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture cape, @Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture elytra, boolean secure)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final com.mojang.authlib.minecraft.MinecraftProfileTextureThe field for thecaperecord component.private final com.mojang.authlib.minecraft.MinecraftProfileTextureThe field for theelytrarecord component.static final SkinManager.TextureInfoprivate final booleanThe field for thesecurerecord component.private final com.mojang.authlib.minecraft.MinecraftProfileTextureThe field for theskinrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionTextureInfo(com.mojang.authlib.minecraft.MinecraftProfileTexture skin, com.mojang.authlib.minecraft.MinecraftProfileTexture cape, com.mojang.authlib.minecraft.MinecraftProfileTexture elytra, boolean secure) Creates an instance of aTextureInforecord class.
- 
Method SummaryModifier and TypeMethodDescriptioncom.mojang.authlib.minecraft.MinecraftProfileTexturecape()Returns the value of thecaperecord component.com.mojang.authlib.minecraft.MinecraftProfileTextureelytra()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.booleansecure()Returns the value of thesecurerecord component.com.mojang.authlib.minecraft.MinecraftProfileTextureskin()Returns the value of theskinrecord component.final StringtoString()Returns a string representation of this record class.static SkinManager.TextureInfounpack(Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type, com.mojang.authlib.minecraft.MinecraftProfileTexture> p_297479_, boolean p_297713_) 
- 
Field Details- 
skin@Nullable private final com.mojang.authlib.minecraft.MinecraftProfileTexture skinThe field for theskinrecord component.
- 
cape@Nullable private final com.mojang.authlib.minecraft.MinecraftProfileTexture capeThe field for thecaperecord component.
- 
elytra@Nullable private final com.mojang.authlib.minecraft.MinecraftProfileTexture elytraThe field for theelytrarecord component.
- 
secureprivate final boolean secureThe field for thesecurerecord component.
- 
EMPTY
 
- 
- 
Constructor Details- 
TextureInfoTextureInfo(@Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture skin, @Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture cape, @Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture elytra, boolean secure) Creates an instance of aTextureInforecord class.- Parameters:
- skin- the value for the- skinrecord component
- cape- the value for the- caperecord component
- elytra- the value for the- elytrarecord component
- secure- the value for the- securerecord component
 
 
- 
- 
Method Details- 
unpackpublic static SkinManager.TextureInfo unpack(Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type, com.mojang.authlib.minecraft.MinecraftProfileTexture> p_297479_, boolean p_297713_) 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates 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 '=='.
- 
skin@Nullable public com.mojang.authlib.minecraft.MinecraftProfileTexture skin()Returns the value of theskinrecord component.- Returns:
- the value of the skinrecord component
 
- 
cape@Nullable public com.mojang.authlib.minecraft.MinecraftProfileTexture cape()Returns the value of thecaperecord component.- Returns:
- the value of the caperecord component
 
- 
elytra@Nullable public com.mojang.authlib.minecraft.MinecraftProfileTexture elytra()Returns the value of theelytrarecord component.- Returns:
- the value of the elytrarecord component
 
- 
securepublic boolean secure()Returns the value of thesecurerecord component.- Returns:
- the value of the securerecord component
 
 
-