Package org.geysermc.geyser.api.skin
Record Class SkinGeometry
java.lang.Object
java.lang.Record
org.geysermc.geyser.api.skin.SkinGeometry
- Record Components:
geometryName- The name of the geometry (JSON)geometryData- The geometry data (JSON)
Represents geometry of a skin.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSkinGeometry(String geometryName, String geometryData) Creates an instance of aSkinGeometryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeometryDatarecord component.Returns the value of thegeometryNamerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
WIDE
-
SLIM
-
-
Constructor Details
-
SkinGeometry
Creates an instance of aSkinGeometryrecord class.- Parameters:
geometryName- the value for thegeometryNamerecord componentgeometryData- the value for thegeometryDatarecord 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). -
geometryName
Returns the value of thegeometryNamerecord component.- Returns:
- the value of the
geometryNamerecord component
-
geometryData
Returns the value of thegeometryDatarecord component.- Returns:
- the value of the
geometryDatarecord component
-