Package net.minecraft.client.util
Record Class DefaultSkinHelper.Skin
java.lang.Object
java.lang.Record
net.minecraft.client.util.DefaultSkinHelper.Skin
- Record Components:
texture
-model
-
- Enclosing class:
DefaultSkinHelper
@Environment(CLIENT)
private static record DefaultSkinHelper.Skin(Identifier texture, DefaultSkinHelper.Model model)
extends Record
- Mappings:
Namespace Name official ftt$b
intermediary net/minecraft/class_1068$class_7921
named net/minecraft/client/util/DefaultSkinHelper$Skin
official a
intermediary comp_1154
named texture
official b
intermediary comp_1155
named model
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DefaultSkinHelper.Model
The field for themodel
record component.private final Identifier
The field for thetexture
record component. -
Constructor Summary
ModifierConstructorDescriptionSkin
(String texture, DefaultSkinHelper.Model model) private
Skin
(Identifier identifier, DefaultSkinHelper.Model model) -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.texture()
Returns the value of thetexture
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Skin
- Mappings:
Namespace Name Mixin selector official <init>
Lftt$b;<init>(Ljava/lang/String;Lftt$a;)V
intermediary <init>
Lnet/minecraft/class_1068$class_7921;<init>(Ljava/lang/String;Lnet/minecraft/class_1068$class_7920;)V
named <init>
Lnet/minecraft/client/util/DefaultSkinHelper$Skin;<init>(Ljava/lang/String;Lnet/minecraft/client/util/DefaultSkinHelper$Model;)V
-
Skin
-
-
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 thetexture
record component.- Returns:
- the value of the
texture
record component
-
model
Returns the value of themodel
record component.- Returns:
- the value of the
model
record component
-