Package net.minecraft.client.resources
Record Class DefaultPlayerSkin.SkinType
java.lang.Object
java.lang.Record
net.minecraft.client.resources.DefaultPlayerSkin.SkinType
- Enclosing class:
- DefaultPlayerSkin
static record DefaultPlayerSkin.SkinType(ResourceLocation texture, DefaultPlayerSkin.ModelType model)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DefaultPlayerSkin.ModelTypeThe field for themodelrecord component.private final ResourceLocationThe field for thetexturerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSkinType(String p_259984_, DefaultPlayerSkin.ModelType p_259456_) SkinType(ResourceLocation texture, DefaultPlayerSkin.ModelType model) Creates an instance of aSkinTyperecord 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.model()Returns the value of themodelrecord component.texture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
texture
The field for thetexturerecord component. -
model
The field for themodelrecord component.
-
-
Constructor Details
-
SkinType
-
SkinType
SkinType(ResourceLocation texture, DefaultPlayerSkin.ModelType model) Creates an instance of aSkinTyperecord class.- Parameters:
texture- the value for thetexturerecord componentmodel- the value for themodelrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-