Package net.minecraft.client.resources
Record Class PlayerSkin
java.lang.Object
java.lang.Record
net.minecraft.client.resources.PlayerSkin
public record PlayerSkin(ResourceLocation texture, @Nullable String textureUrl, @Nullable ResourceLocation capeTexture, @Nullable ResourceLocation elytraTexture, PlayerSkin.Model model, boolean secure)
extends Record
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ResourceLocationThe field for thecapeTexturerecord component.private final ResourceLocationThe field for theelytraTexturerecord component.private final PlayerSkin.ModelThe field for themodelrecord component.private final booleanThe field for thesecurerecord component.private final ResourceLocationThe field for thetexturerecord component.private final StringThe field for thetextureUrlrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerSkin(ResourceLocation texture, String textureUrl, ResourceLocation capeTexture, ResourceLocation elytraTexture, PlayerSkin.Model model, boolean secure) Creates an instance of aPlayerSkinrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thecapeTexturerecord component.Returns the value of theelytraTexturerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.booleansecure()Returns the value of thesecurerecord component.texture()Returns the value of thetexturerecord component.Returns the value of thetextureUrlrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
textureThe field for thetexturerecord component.
- 
textureUrlThe field for thetextureUrlrecord component.
- 
capeTextureThe field for thecapeTexturerecord component.
- 
elytraTextureThe field for theelytraTexturerecord component.
- 
modelThe field for themodelrecord component.
- 
secureprivate final boolean secureThe field for thesecurerecord component.
 
- 
- 
Constructor Details- 
PlayerSkinpublic PlayerSkin(ResourceLocation texture, @Nullable String textureUrl, @Nullable ResourceLocation capeTexture, @Nullable ResourceLocation elytraTexture, PlayerSkin.Model model, boolean secure) Creates an instance of aPlayerSkinrecord class.- Parameters:
- texture- the value for the- texturerecord component
- textureUrl- the value for the- textureUrlrecord component
- capeTexture- the value for the- capeTexturerecord component
- elytraTexture- the value for the- elytraTexturerecord component
- model- the value for the- modelrecord component
- secure- the value for the- securerecord component
 
 
- 
- 
Method Details- 
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 '=='.
- 
textureReturns the value of thetexturerecord component.- Returns:
- the value of the texturerecord component
 
- 
textureUrlReturns the value of thetextureUrlrecord component.- Returns:
- the value of the textureUrlrecord component
 
- 
capeTextureReturns the value of thecapeTexturerecord component.- Returns:
- the value of the capeTexturerecord component
 
- 
elytraTextureReturns the value of theelytraTexturerecord component.- Returns:
- the value of the elytraTexturerecord component
 
- 
modelReturns the value of themodelrecord component.- Returns:
- the value of the modelrecord component
 
- 
securepublic boolean secure()Returns the value of thesecurerecord component.- Returns:
- the value of the securerecord component
 
 
-