Package de.oliver.fancynpcs.api.utils
Record Class SkinFetcher.SkinData
java.lang.Object
java.lang.Record
de.oliver.fancynpcs.api.utils.SkinFetcher.SkinData
- Record Components:
identifier- The identifier of the skin. This can be a UUID, username, URL or a placeholder by PAPI.value- The value of the skin. Ifnull, the skin will be fetched from the Mojang API.signature- The signature of the skin. Ifnull, the skin will be fetched from the Mojang API.
- Enclosing class:
SkinFetcher
@Deprecated
public static record SkinFetcher.SkinData(@NotNull String identifier, @Nullable String value, @Nullable String signature)
extends Record
Deprecated.
Represents all required data for a skin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanDeprecated.Indicates whether some other object is "equal to" this one.final inthashCode()Deprecated.Returns a hash code value for this object.@NotNull StringDeprecated.Returns the value of theidentifierrecord component.Deprecated.Fetches the skin data from the Mojang API if the value or signature isnull.final StringtoString()Deprecated.Returns a string representation of this record class.value()Deprecated.Fetches the skin data from the Mojang API if the value or signature isnull.
-
Constructor Details
-
SkinData
public SkinData(@NotNull @NotNull String identifier, @Nullable @Nullable String value, @Nullable @Nullable String signature) Deprecated.Creates an instance of aSkinDatarecord class.- Parameters:
identifier- the value for theidentifierrecord componentvalue- the value for thevaluerecord componentsignature- the value for thesignaturerecord component
-
-
Method Details
-
value
Deprecated.Fetches the skin data from the Mojang API if the value or signature isnull.- Returns:
- The value of the skin or
nullif the skin data could not be fetched.
-
signature
Deprecated.Fetches the skin data from the Mojang API if the value or signature isnull.- Returns:
- The signature of the skin or
nullif the skin data could not be fetched.
-
toString
Deprecated.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()Deprecated.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated.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). -
identifier
Deprecated.Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-