Package org.geysermc.geyser.api.skin
Record Class Cape
java.lang.Object
java.lang.Record
org.geysermc.geyser.api.skin.Cape
- Record Components:
textureUrl- The URL of the cape texturecapeId- The ID of the capecapeData- The raw cape image data in ARGB formatfailed- If the cape failed to load, this is for things like fallback capes
public record Cape(String textureUrl, String capeId, byte[] capeData, boolean failed)
extends Record
Represents a cape.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]capeData()Returns the value of thecapeDatarecord component.capeId()Returns the value of thecapeIdrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfailed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thetextureUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Cape
-
Cape
Creates an instance of aCaperecord class.- Parameters:
textureUrl- the value for thetextureUrlrecord componentcapeId- the value for thecapeIdrecord componentcapeData- the value for thecapeDatarecord componentfailed- the value for thefailedrecord 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 thetextureUrlrecord component.- Returns:
- the value of the
textureUrlrecord component
-
capeId
Returns the value of thecapeIdrecord component.- Returns:
- the value of the
capeIdrecord component
-
capeData
public byte[] capeData()Returns the value of thecapeDatarecord component.- Returns:
- the value of the
capeDatarecord component
-
failed
public boolean failed()Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-