Record Class MinecraftVersionMeta

java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.providers.minecraft.MinecraftVersionMeta

public record MinecraftVersionMeta(Object arguments, MinecraftVersionMeta.AssetIndex assetIndex, String assets, int complianceLevel, Map<String,​MinecraftVersionMeta.Download> downloads, String id, List<MinecraftVersionMeta.Library> libraries, Object logging, String mainClass, int minimumLauncherVersion, String releaseTime, String time, String type) extends Record
  • Constructor Details

    • MinecraftVersionMeta

      public MinecraftVersionMeta(Object arguments, MinecraftVersionMeta.AssetIndex assetIndex, String assets, int complianceLevel, Map<String,​MinecraftVersionMeta.Download> downloads, String id, List<MinecraftVersionMeta.Library> libraries, Object logging, String mainClass, int minimumLauncherVersion, String releaseTime, String time, String type)
      Creates an instance of a MinecraftVersionMeta record class.
      Parameters:
      arguments - the value for the arguments record component
      assetIndex - the value for the assetIndex record component
      assets - the value for the assets record component
      complianceLevel - the value for the complianceLevel record component
      downloads - the value for the downloads record component
      id - the value for the id record component
      libraries - the value for the libraries record component
      logging - the value for the logging record component
      mainClass - the value for the mainClass record component
      minimumLauncherVersion - the value for the minimumLauncherVersion record component
      releaseTime - the value for the releaseTime record component
      time - the value for the time record component
      type - the value for the type record component
  • Method Details

    • download

      public MinecraftVersionMeta.Download download(String key)
    • 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.
    • arguments

      public Object arguments()
      Returns the value of the arguments record component.
      Returns:
      the value of the arguments record component
    • assetIndex

      public MinecraftVersionMeta.AssetIndex assetIndex()
      Returns the value of the assetIndex record component.
      Returns:
      the value of the assetIndex record component
    • assets

      public String assets()
      Returns the value of the assets record component.
      Returns:
      the value of the assets record component
    • complianceLevel

      public int complianceLevel()
      Returns the value of the complianceLevel record component.
      Returns:
      the value of the complianceLevel record component
    • downloads

      public Map<String,​MinecraftVersionMeta.Download> downloads()
      Returns the value of the downloads record component.
      Returns:
      the value of the downloads record component
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • libraries

      public List<MinecraftVersionMeta.Library> libraries()
      Returns the value of the libraries record component.
      Returns:
      the value of the libraries record component
    • logging

      public Object logging()
      Returns the value of the logging record component.
      Returns:
      the value of the logging record component
    • mainClass

      public String mainClass()
      Returns the value of the mainClass record component.
      Returns:
      the value of the mainClass record component
    • minimumLauncherVersion

      public int minimumLauncherVersion()
      Returns the value of the minimumLauncherVersion record component.
      Returns:
      the value of the minimumLauncherVersion record component
    • releaseTime

      public String releaseTime()
      Returns the value of the releaseTime record component.
      Returns:
      the value of the releaseTime record component
    • time

      public String time()
      Returns the value of the time record component.
      Returns:
      the value of the time record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component