Package net.minecraft.client.texture
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$Entryintermediary net/minecraft/class_11697$class_7772official iek$bnamed atlasintermediary comp_1051official anamed metadataintermediary comp_4557official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SpriteAtlasTextureThe field for theatlasrecord component.private final AtlasManager.MetadataThe field for themetadatarecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEntry(SpriteAtlasTexture spriteAtlasTexture, AtlasManager.Metadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionatlas()Returns the value of theatlasrecord component.voidclose()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.(package private) CompletableFuture<SpriteLoader.StitchResult> load(ResourceManager manager, Executor executor, int mipLevel) metadata()Returns the value of themetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Entry
Entry(SpriteAtlasTexture spriteAtlasTexture, AtlasManager.Metadata metadata)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
load
CompletableFuture<SpriteLoader.StitchResult> load(ResourceManager manager, Executor executor, int mipLevel) - Mappings:
Namespace Name Mixin selector named loadLnet/minecraft/client/texture/AtlasManager$Entry;load(Lnet/minecraft/resource/ResourceManager;Ljava/util/concurrent/Executor;I)Ljava/util/concurrent/CompletableFuture;intermediary method_73034Lnet/minecraft/class_11697$class_7772;method_73034(Lnet/minecraft/class_3300;Ljava/util/concurrent/Executor;I)Ljava/util/concurrent/CompletableFuture;official aLiek$b;a(Lbap;Ljava/util/concurrent/Executor;I)Ljava/util/concurrent/CompletableFuture;
-
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. -
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. -
equals
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). -
atlas
Returns the value of theatlasrecord component.- Returns:
- the value of the
atlasrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-