Package org.geysermc.geyser.api.skin
Record Class Skin
java.lang.Object
java.lang.Record
org.geysermc.geyser.api.skin.Skin
- Record Components:
textureUrl
- The URL/ID of the skin textureskinData
- The raw skin image data in ARGBfailed
- If the skin failed to load, this is for things like fallback skins
Represents a skin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.boolean
failed()
Returns the value of thefailed
record component.final int
hashCode()
Returns a hash code value for this object.byte[]
skinData()
Returns the value of theskinData
record component.Returns the value of thetextureUrl
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Skin
-
Skin
Creates an instance of aSkin
record class.- Parameters:
textureUrl
- the value for thetextureUrl
record componentskinData
- the value for theskinData
record componentfailed
- the value for thefailed
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
textureUrl
Returns the value of thetextureUrl
record component.- Returns:
- the value of the
textureUrl
record component
-
skinData
public byte[] skinData()Returns the value of theskinData
record component.- Returns:
- the value of the
skinData
record component
-
failed
public boolean failed()Returns the value of thefailed
record component.- Returns:
- the value of the
failed
record component
-