Record Class SpriteLoader.Preparations

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.texture.SpriteLoader.Preparations
Enclosing class:
SpriteLoader

public static record SpriteLoader.Preparations(int width, int height, int mipLevel, TextureAtlasSprite missing, Map<ResourceLocation,TextureAtlasSprite> regions, CompletableFuture<Void> readyForUpload) extends Record
  • Field Details

    • width

      private final int width
      The field for the width record component.
    • height

      private final int height
      The field for the height record component.
    • mipLevel

      private final int mipLevel
      The field for the mipLevel record component.
    • missing

      private final TextureAtlasSprite missing
      The field for the missing record component.
    • regions

      private final Map<ResourceLocation,TextureAtlasSprite> regions
      The field for the regions record component.
    • readyForUpload

      private final CompletableFuture<Void> readyForUpload
      The field for the readyForUpload record component.
  • Constructor Details

    • Preparations

      public Preparations(int width, int height, int mipLevel, TextureAtlasSprite missing, Map<ResourceLocation,TextureAtlasSprite> regions, CompletableFuture<Void> readyForUpload)
      Creates an instance of a Preparations record class.
      Parameters:
      width - the value for the width record component
      height - the value for the height record component
      mipLevel - the value for the mipLevel record component
      missing - the value for the missing record component
      regions - the value for the regions record component
      readyForUpload - the value for the readyForUpload record component
  • Method Details

    • waitForUpload

    • 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.
    • width

      public int width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • height

      public int height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • mipLevel

      public int mipLevel()
      Returns the value of the mipLevel record component.
      Returns:
      the value of the mipLevel record component
    • missing

      public TextureAtlasSprite missing()
      Returns the value of the missing record component.
      Returns:
      the value of the missing record component
    • regions

      Returns the value of the regions record component.
      Returns:
      the value of the regions record component
    • readyForUpload

      public CompletableFuture<Void> readyForUpload()
      Returns the value of the readyForUpload record component.
      Returns:
      the value of the readyForUpload record component