Record Class SkinManager.TextureInfo

java.lang.Object
java.lang.Record
net.minecraft.client.resources.SkinManager.TextureInfo
Enclosing class:
SkinManager

static record SkinManager.TextureInfo(@Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture skin, @Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture cape, @Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture elytra, boolean secure) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final com.mojang.authlib.minecraft.MinecraftProfileTexture
    The field for the cape record component.
    private final com.mojang.authlib.minecraft.MinecraftProfileTexture
    The field for the elytra record component.
     
    private final boolean
    The field for the secure record component.
    private final com.mojang.authlib.minecraft.MinecraftProfileTexture
    The field for the skin record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TextureInfo(com.mojang.authlib.minecraft.MinecraftProfileTexture skin, com.mojang.authlib.minecraft.MinecraftProfileTexture cape, com.mojang.authlib.minecraft.MinecraftProfileTexture elytra, boolean secure)
    Creates an instance of a TextureInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.authlib.minecraft.MinecraftProfileTexture
    Returns the value of the cape record component.
    com.mojang.authlib.minecraft.MinecraftProfileTexture
    Returns the value of the elytra record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the secure record component.
    com.mojang.authlib.minecraft.MinecraftProfileTexture
    Returns the value of the skin record component.
    final String
    Returns a string representation of this record class.
    unpack(Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,com.mojang.authlib.minecraft.MinecraftProfileTexture> p_297479_, boolean p_297713_)
     

    Methods inherited from class java.lang.Object

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

    • skin

      @Nullable private final com.mojang.authlib.minecraft.MinecraftProfileTexture skin
      The field for the skin record component.
    • cape

      @Nullable private final com.mojang.authlib.minecraft.MinecraftProfileTexture cape
      The field for the cape record component.
    • elytra

      @Nullable private final com.mojang.authlib.minecraft.MinecraftProfileTexture elytra
      The field for the elytra record component.
    • secure

      private final boolean secure
      The field for the secure record component.
    • EMPTY

      public static final SkinManager.TextureInfo EMPTY
  • Constructor Details

    • TextureInfo

      TextureInfo(@Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture skin, @Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture cape, @Nullable com.mojang.authlib.minecraft.MinecraftProfileTexture elytra, boolean secure)
      Creates an instance of a TextureInfo record class.
      Parameters:
      skin - the value for the skin record component
      cape - the value for the cape record component
      elytra - the value for the elytra record component
      secure - the value for the secure record component
  • Method Details

    • unpack

      public static SkinManager.TextureInfo unpack(Map<com.mojang.authlib.minecraft.MinecraftProfileTexture.Type,com.mojang.authlib.minecraft.MinecraftProfileTexture> p_297479_, boolean p_297713_)
    • toString

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

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • skin

      @Nullable public com.mojang.authlib.minecraft.MinecraftProfileTexture skin()
      Returns the value of the skin record component.
      Returns:
      the value of the skin record component
    • cape

      @Nullable public com.mojang.authlib.minecraft.MinecraftProfileTexture cape()
      Returns the value of the cape record component.
      Returns:
      the value of the cape record component
    • elytra

      @Nullable public com.mojang.authlib.minecraft.MinecraftProfileTexture elytra()
      Returns the value of the elytra record component.
      Returns:
      the value of the elytra record component
    • secure

      public boolean secure()
      Returns the value of the secure record component.
      Returns:
      the value of the secure record component