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(Identifier textureId, Identifier definitionLocation, boolean createMipmaps, Set<MetadataSectionType<?>> additionalMetadata) extends Record
  • Field Details

    • textureId

      private final Identifier textureId
      The field for the textureId record component.
    • definitionLocation

      private final Identifier definitionLocation
      The field for the definitionLocation record component.
    • createMipmaps

      private final boolean createMipmaps
      The field for the createMipmaps record component.
    • additionalMetadata

      private final Set<MetadataSectionType<?>> additionalMetadata
      The field for the additionalMetadata record component.
  • Constructor Details

    • AtlasConfig

      public AtlasConfig(Identifier p_469620_, Identifier p_468900_, boolean p_433479_)
    • AtlasConfig

      public AtlasConfig(Identifier textureId, Identifier definitionLocation, boolean createMipmaps, Set<MetadataSectionType<?>> additionalMetadata)
      Creates an instance of a AtlasConfig record class.
      Parameters:
      textureId - the value for the textureId record component
      definitionLocation - the value for the definitionLocation record component
      createMipmaps - the value for the createMipmaps record component
      additionalMetadata - the value for the additionalMetadata record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • textureId

      public Identifier textureId()
      Returns the value of the textureId record component.
      Returns:
      the value of the textureId record component
    • definitionLocation

      public Identifier definitionLocation()
      Returns the value of the definitionLocation record component.
      Returns:
      the value of the definitionLocation record component
    • createMipmaps

      public boolean createMipmaps()
      Returns the value of the createMipmaps record component.
      Returns:
      the value of the createMipmaps record component
    • additionalMetadata

      public Set<MetadataSectionType<?>> additionalMetadata()
      Returns the value of the additionalMetadata record component.
      Returns:
      the value of the additionalMetadata record component