Record Class AtlasManager.AtlasConfig
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.AtlasManager.AtlasConfig
- Enclosing class:
AtlasManager
public static record AtlasManager.AtlasConfig(ResourceLocation textureId, ResourceLocation definitionLocation, boolean createMipmaps, Set<MetadataSectionType<?>> additionalMetadata)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<MetadataSectionType<?>> The field for theadditionalMetadatarecord component.private final booleanThe field for thecreateMipmapsrecord component.private final ResourceLocationThe field for thedefinitionLocationrecord component.private final ResourceLocationThe field for thetextureIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionAtlasConfig(ResourceLocation p_435325_, ResourceLocation p_435767_, boolean p_433479_) AtlasConfig(ResourceLocation textureId, ResourceLocation definitionLocation, boolean createMipmaps, Set<MetadataSectionType<?>> additionalMetadata) Creates an instance of aAtlasConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalMetadatarecord component.booleanReturns the value of thecreateMipmapsrecord component.Returns the value of thedefinitionLocationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetextureIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
textureId
The field for thetextureIdrecord component. -
definitionLocation
The field for thedefinitionLocationrecord component. -
createMipmaps
private final boolean createMipmapsThe field for thecreateMipmapsrecord component. -
additionalMetadata
The field for theadditionalMetadatarecord component.
-
-
Constructor Details
-
AtlasConfig
-
AtlasConfig
public AtlasConfig(ResourceLocation textureId, ResourceLocation definitionLocation, boolean createMipmaps, Set<MetadataSectionType<?>> additionalMetadata) Creates an instance of aAtlasConfigrecord class.- Parameters:
textureId- the value for thetextureIdrecord componentdefinitionLocation- the value for thedefinitionLocationrecord componentcreateMipmaps- the value for thecreateMipmapsrecord componentadditionalMetadata- the value for theadditionalMetadatarecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
textureId
Returns the value of thetextureIdrecord component.- Returns:
- the value of the
textureIdrecord component
-
definitionLocation
Returns the value of thedefinitionLocationrecord component.- Returns:
- the value of the
definitionLocationrecord component
-
createMipmaps
public boolean createMipmaps()Returns the value of thecreateMipmapsrecord component.- Returns:
- the value of the
createMipmapsrecord component
-
additionalMetadata
Returns the value of theadditionalMetadatarecord component.- Returns:
- the value of the
additionalMetadatarecord component
-