Record Class AtlasSet.AtlasEntry
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.AtlasSet.AtlasEntry
- All Implemented Interfaces:
- AutoCloseable
- Enclosing class:
- AtlasSet
static record AtlasSet.AtlasEntry(TextureAtlas atlas, ResourceLocation atlasInfoLocation)
extends Record
implements AutoCloseable
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final TextureAtlasThe field for theatlasrecord component.private final ResourceLocationThe field for theatlasInfoLocationrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionAtlasEntry(TextureAtlas atlas, ResourceLocation atlasInfoLocation) Creates an instance of aAtlasEntryrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionatlas()Returns the value of theatlasrecord component.Returns the value of theatlasInfoLocationrecord component.voidclose()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
atlasThe field for theatlasrecord component.
- 
atlasInfoLocationThe field for theatlasInfoLocationrecord component.
 
- 
- 
Constructor Details- 
AtlasEntryAtlasEntry(TextureAtlas atlas, ResourceLocation atlasInfoLocation) Creates an instance of aAtlasEntryrecord class.- Parameters:
- atlas- the value for the- atlasrecord component
- atlasInfoLocation- the value for the- atlasInfoLocationrecord component
 
 
- 
- 
Method Details- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
atlasReturns the value of theatlasrecord component.- Returns:
- the value of the atlasrecord component
 
- 
atlasInfoLocationReturns the value of theatlasInfoLocationrecord component.- Returns:
- the value of the atlasInfoLocationrecord component
 
 
-