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
Modifier and TypeFieldDescriptionprivate final PlayerModel
<?> The field for theslimModel
record component.private final PlayerModel
<?> The field for thewideModel
record component. -
Constructor Summary
ConstructorDescriptionModel
(PlayerModel<?> wideModel, PlayerModel<?> slimModel) Creates an instance of aModel
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlayerSkinWidget.Model
bake
(EntityModelSet p_300414_) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.void
render
(GuiGraphics p_299673_, PlayerSkin p_297884_) PlayerModel
<?> Returns the value of theslimModel
record component.final String
toString()
Returns a string representation of this record class.PlayerModel
<?> Returns the value of thewideModel
record component.
-
Field Details
-
wideModel
The field for thewideModel
record component. -
slimModel
The field for theslimModel
record component.
-
-
Constructor Details
-
Model
Model(PlayerModel<?> wideModel, PlayerModel<?> slimModel) Creates an instance of aModel
record class.- Parameters:
wideModel
- the value for thewideModel
record componentslimModel
- the value for theslimModel
record 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 thewideModel
record component.- Returns:
- the value of the
wideModel
record component
-
slimModel
Returns the value of theslimModel
record component.- Returns:
- the value of the
slimModel
record component
-