Package kr.toxicity.model.api.profile
Record Class ModelProfileSkin
java.lang.Object
java.lang.Record
kr.toxicity.model.api.profile.ModelProfileSkin
- Record Components:
skin- skincape- capeslim- is slim modelraw- raw textures
public record ModelProfileSkin(@Nullable URI skin, @Nullable URI cape, boolean slim, @NotNull String raw)
extends Record
Profile skin
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModelProfileSkin(@Nullable URI skin, @Nullable URI cape, boolean slim, @NotNull String raw) Creates an instance of aModelProfileSkinrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable URIcape()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.@NotNull Stringraw()Returns the value of therawrecord component.@Nullable URIskin()Returns the value of theskinrecord component.booleanslim()Returns the value of theslimrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
Empty skin
-
-
Constructor Details
-
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 '=='. -
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
-
slim
public boolean slim()Returns the value of theslimrecord component.- Returns:
- the value of the
slimrecord component
-
raw
Returns the value of therawrecord component.- Returns:
- the value of the
rawrecord component
-