Package org.geysermc.geyser.skin
Record Class SkinProvider.SkinAndCape
java.lang.Object
java.lang.Record
org.geysermc.geyser.skin.SkinProvider.SkinAndCape
- Enclosing class:
- SkinProvider
public static record SkinProvider.SkinAndCape(SkinProvider.Skin skin, SkinProvider.Cape cape)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSkinAndCape(SkinProvider.Skin skin, SkinProvider.Cape cape) Creates an instance of aSkinAndCaperecord class. -
Method Summary
Modifier and TypeMethodDescriptioncape()Returns the value of thecaperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.skin()Returns the value of theskinrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SkinAndCape
Creates an instance of aSkinAndCaperecord class.- Parameters:
skin- the value for theskinrecord componentcape- the value for thecaperecord 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
-