Record Class AtlasManager.AtlasEntry
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.AtlasManager.AtlasEntry
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
AtlasManager
private static record AtlasManager.AtlasEntry(TextureAtlas atlas, AtlasManager.AtlasConfig config)
extends Record
implements AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TextureAtlasThe field for theatlasrecord component.private final AtlasManager.AtlasConfigThe field for theconfigrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAtlasEntry(TextureAtlas atlas, AtlasManager.AtlasConfig config) Creates an instance of aAtlasEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionatlas()Returns the value of theatlasrecord component.voidclose()config()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.scheduleLoad(ResourceManager resourceManager, Executor executor, int maxMipmapLevels) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
atlas
The field for theatlasrecord component. -
config
The field for theconfigrecord component.
-
-
Constructor Details
-
AtlasEntry
Creates an instance of aAtlasEntryrecord class.- Parameters:
atlas- the value for theatlasrecord componentconfig- the value for theconfigrecord component
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
scheduleLoad
private CompletableFuture<SpriteLoader.Preparations> scheduleLoad(ResourceManager resourceManager, Executor executor, int maxMipmapLevels) -
toString
-
hashCode
-
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
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-