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. If null, the skin will be fetched from the Mojang API.
signature - The signature of the skin. If null, 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
    Constructor
    Description
    SkinData(@NotNull String identifier, @Nullable String value, @Nullable String signature)
    Deprecated.
    Creates an instance of a SkinData record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Deprecated.
    Indicates whether some other object is "equal to" this one.
    final int
    Deprecated.
    Returns a hash code value for this object.
    @NotNull String
    Deprecated.
    Returns the value of the identifier record component.
    Deprecated.
    Fetches the skin data from the Mojang API if the value or signature is null.
    final String
    Deprecated.
    Returns a string representation of this record class.
    Deprecated.
    Fetches the skin data from the Mojang API if the value or signature is null.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SkinData

      public SkinData(@NotNull @NotNull String identifier, @Nullable @Nullable String value, @Nullable @Nullable String signature)
      Deprecated.
      Creates an instance of a SkinData record class.
      Parameters:
      identifier - the value for the identifier record component
      value - the value for the value record component
      signature - the value for the signature record component
  • Method Details

    • value

      public String value()
      Deprecated.
      Fetches the skin data from the Mojang API if the value or signature is null.
      Returns:
      The value of the skin or null if the skin data could not be fetched.
    • signature

      public String signature()
      Deprecated.
      Fetches the skin data from the Mojang API if the value or signature is null.
      Returns:
      The signature of the skin or null if the skin data could not be fetched.
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • identifier

      @NotNull public @NotNull String identifier()
      Deprecated.
      Returns the value of the identifier record component.
      Returns:
      the value of the identifier record component