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 Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourceLocation
The field for thecapeTexture
record component.private final ResourceLocation
The field for theelytraTexture
record component.private final PlayerSkin.Model
The field for themodel
record component.private final boolean
The field for thesecure
record component.private final ResourceLocation
The field for thetexture
record component.private final String
The field for thetextureUrl
record component. -
Constructor Summary
ConstructorDescriptionPlayerSkin
(ResourceLocation texture, String textureUrl, ResourceLocation capeTexture, ResourceLocation elytraTexture, PlayerSkin.Model model, boolean secure) Creates an instance of aPlayerSkin
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapeTexture
record component.Returns the value of theelytraTexture
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.model()
Returns the value of themodel
record component.boolean
secure()
Returns the value of thesecure
record component.texture()
Returns the value of thetexture
record component.Returns the value of thetextureUrl
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
texture
The field for thetexture
record component. -
textureUrl
The field for thetextureUrl
record component. -
capeTexture
The field for thecapeTexture
record component. -
elytraTexture
The field for theelytraTexture
record component. -
model
The field for themodel
record component. -
secure
private final boolean secureThe field for thesecure
record component.
-
-
Constructor Details
-
PlayerSkin
public PlayerSkin(ResourceLocation texture, @Nullable String textureUrl, @Nullable ResourceLocation capeTexture, @Nullable ResourceLocation elytraTexture, PlayerSkin.Model model, boolean secure) Creates an instance of aPlayerSkin
record class.- Parameters:
texture
- the value for thetexture
record componenttextureUrl
- the value for thetextureUrl
record componentcapeTexture
- the value for thecapeTexture
record componentelytraTexture
- the value for theelytraTexture
record componentmodel
- the value for themodel
record componentsecure
- the value for thesecure
record component
-
-
Method Details
-
toString
Returns 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. -
hashCode
public 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. -
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 '=='. -
texture
Returns the value of thetexture
record component.- Returns:
- the value of the
texture
record component
-
textureUrl
Returns the value of thetextureUrl
record component.- Returns:
- the value of the
textureUrl
record component
-
capeTexture
Returns the value of thecapeTexture
record component.- Returns:
- the value of the
capeTexture
record component
-
elytraTexture
Returns the value of theelytraTexture
record component.- Returns:
- the value of the
elytraTexture
record component
-
model
Returns the value of themodel
record component.- Returns:
- the value of the
model
record component
-
secure
public boolean secure()Returns the value of thesecure
record component.- Returns:
- the value of the
secure
record component
-