Record Class AtlasManager.Entry

java.lang.Object
java.lang.Record
net.minecraft.client.texture.AtlasManager.Entry
Record Components:
atlas -
metadata -
All Implemented Interfaces:
AutoCloseable
Enclosing class:
AtlasManager

@Environment(CLIENT) private static record AtlasManager.Entry(SpriteAtlasTexture atlas, AtlasManager.Metadata metadata) extends Record implements AutoCloseable
Mappings:
Namespace Name
named net/minecraft/client/texture/AtlasManager$Entry
intermediary net/minecraft/class_11697$class_7772
official iek$b
named atlas
intermediary comp_1051
official a
named metadata
intermediary comp_4557
official b
  • Field Details

  • Constructor Details

  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • load

      CompletableFuture<SpriteLoader.StitchResult> load(ResourceManager manager, Executor executor, int mipLevel)
      Mappings:
      Namespace Name Mixin selector
      named load Lnet/minecraft/client/texture/AtlasManager$Entry;load(Lnet/minecraft/resource/ResourceManager;Ljava/util/concurrent/Executor;I)Ljava/util/concurrent/CompletableFuture;
      intermediary method_73034 Lnet/minecraft/class_11697$class_7772;method_73034(Lnet/minecraft/class_3300;Ljava/util/concurrent/Executor;I)Ljava/util/concurrent/CompletableFuture;
      official a Liek$b;a(Lbap;Ljava/util/concurrent/Executor;I)Ljava/util/concurrent/CompletableFuture;
    • 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 object)
      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:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • atlas

      public SpriteAtlasTexture atlas()
      Returns the value of the atlas record component.
      Returns:
      the value of the atlas record component
    • metadata

      public AtlasManager.Metadata metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component