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
ConstructorsConstructorDescriptionSkinData(SkinProvider.Skin skin, SkinProvider.Cape cape, SkinProvider.SkinGeometry geometry)Creates an instance of aSkinDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncape()Returns the value of thecaperecord component.booleanIndicates whether some other object is "equal to" this one.geometry()Returns the value of thegeometryrecord component.inthashCode()Returns a hash code value for this object.skin()Returns the value of theskinrecord 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 aSkinDatarecord class.- Parameters:
skin- the value for theskinrecord componentcape- the value for thecaperecord componentgeometry- the value for thegeometryrecord 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 theskinrecord component.- Returns:
- the value of the
skinrecord component
-
cape
Returns the value of thecaperecord component.- Returns:
- the value of the
caperecord component
-
geometry
Returns the value of thegeometryrecord component.- Returns:
- the value of the
geometryrecord component
-