Record Class AtlasManager.AtlasEntry
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.AtlasManager.AtlasEntry
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
AtlasManager
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
ConstructorsConstructorDescriptionAtlasEntry(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.(package private) CompletableFuture<SpriteLoader.Preparations> scheduleLoad(ResourceManager pResourceManager, Executor pExecutor, int pMipLevel) 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
AtlasEntry(TextureAtlas atlas, AtlasManager.AtlasConfig config) 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
CompletableFuture<SpriteLoader.Preparations> scheduleLoad(ResourceManager pResourceManager, Executor pExecutor, int pMipLevel) -
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
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-