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 SummaryFieldsModifier and TypeFieldDescriptionprivate final PlayerModel<?>The field for theslimModelrecord component.private final PlayerModel<?>The field for thewideModelrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionModel(PlayerModel<?> wideModel, PlayerModel<?> slimModel) Creates an instance of aModelrecord class.
- 
Method SummaryModifier 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- 
wideModelThe field for thewideModelrecord component.
- 
slimModelThe field for theslimModelrecord component.
 
- 
- 
Constructor Details- 
ModelModel(PlayerModel<?> wideModel, PlayerModel<?> slimModel) Creates an instance of aModelrecord class.- Parameters:
- wideModel- the value for the- wideModelrecord component
- slimModel- the value for the- slimModelrecord component
 
 
- 
- 
Method Details- 
bake
- 
render
- 
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. All components in this record class are compared withObjects::equals(Object,Object).
- 
wideModelReturns the value of thewideModelrecord component.- Returns:
- the value of the wideModelrecord component
 
- 
slimModelReturns the value of theslimModelrecord component.- Returns:
- the value of the slimModelrecord component
 
 
-