Record Class PlayerSkinWidget.Model
java.lang.Object
java.lang.Record
net.minecraft.client.gui.components.PlayerSkinWidget.Model
- Enclosing class:
PlayerSkinWidget
static record PlayerSkinWidget.Model(PlayerModel<?> wideModel, PlayerModel<?> slimModel)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PlayerModel<?> The field for theslimModelrecord component.private final PlayerModel<?> The field for thewideModelrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionModel(PlayerModel<?> wideModel, PlayerModel<?> slimModel) Creates an instance of aModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlayerSkinWidget.Modelbake(EntityModelSet p_300003_) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidrender(GuiGraphics p_300018_, PlayerSkin p_299991_) PlayerModel<?> Returns the value of theslimModelrecord component.final StringtoString()Returns a string representation of this record class.PlayerModel<?> Returns the value of thewideModelrecord component.
-
Field Details
-
wideModel
The field for thewideModelrecord component. -
slimModel
The field for theslimModelrecord component.
-
-
Constructor Details
-
Model
Model(PlayerModel<?> wideModel, PlayerModel<?> slimModel) Creates an instance of aModelrecord class.- Parameters:
wideModel- the value for thewideModelrecord componentslimModel- the value for theslimModelrecord component
-
-
Method Details
-
bake
-
render
-
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). -
wideModel
Returns the value of thewideModelrecord component.- Returns:
- the value of the
wideModelrecord component
-
slimModel
Returns the value of theslimModelrecord component.- Returns:
- the value of the
slimModelrecord component
-