Package org.geysermc.geyser.skin
Record Class SkinProvider.SkinData
java.lang.Object
java.lang.Record
org.geysermc.geyser.skin.SkinProvider.SkinData
- Enclosing class:
- SkinProvider
public static record SkinProvider.SkinData(SkinProvider.Skin skin, SkinProvider.Cape cape, SkinProvider.SkinGeometry geometry)
extends Record
-
Constructor Summary
ConstructorDescriptionSkinData(SkinProvider.Skin skin, SkinProvider.Cape cape, SkinProvider.SkinGeometry geometry)
Creates an instance of aSkinData
record class. -
Method Summary
Modifier and TypeMethodDescriptioncape()
Returns the value of thecape
record component.boolean
Indicates whether some other object is "equal to" this one.geometry()
Returns the value of thegeometry
record component.int
hashCode()
Returns a hash code value for this object.skin()
Returns the value of theskin
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
SkinData
public SkinData(SkinProvider.Skin skin, SkinProvider.Cape cape, SkinProvider.SkinGeometry geometry)Creates an instance of aSkinData
record class.- Parameters:
skin
- the value for theskin
record componentcape
- the value for thecape
record componentgeometry
- the value for thegeometry
record 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)
. -
skin
Returns the value of theskin
record component.- Returns:
- the value of the
skin
record component
-
cape
Returns the value of thecape
record component.- Returns:
- the value of the
cape
record component
-
geometry
Returns the value of thegeometry
record component.- Returns:
- the value of the
geometry
record component
-