Package kr.toxicity.model.api.skin
Record Class SkinProfile
java.lang.Object
java.lang.Record
kr.toxicity.model.api.skin.SkinProfile
public record SkinProfile(@NotNull UUID id, @NotNull String name, @NotNull Collection<com.mojang.authlib.properties.Property> textures)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSkinProfile(@NotNull UUID id, @NotNull String name, @NotNull Collection<com.mojang.authlib.properties.Property> textures) Creates an instance of aSkinProfilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.@NotNull UUIDid()Returns the value of theidrecord component.@NotNull Stringname()Returns the value of thenamerecord component.@NotNull Collection<com.mojang.authlib.properties.Property> textures()Returns the value of thetexturesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SkinProfile
public SkinProfile(@NotNull @NotNull UUID id, @NotNull @NotNull String name, @NotNull @NotNull Collection<com.mojang.authlib.properties.Property> textures) Creates an instance of aSkinProfilerecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componenttextures- the value for thetexturesrecord component
-
-
Method Details
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
textures
Returns the value of thetexturesrecord component.- Returns:
- the value of the
texturesrecord component
-