Record Class VersionMeta

java.lang.Object
java.lang.Record
com.cleanroommc.gradle.api.schema.VersionMeta

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

    • VersionMeta

      public VersionMeta(VersionMeta.Arguments arguments, VersionMeta.AssetIndex assetIndex, String assets, int complianceLevel, Map<String, VersionMeta.Download> downloads, String id, VersionMeta.JavaVersion javaVersion, List<VersionMeta.Library> libraries, Object logging, String mainClass, String minecraftArguments, int minimumLauncherVersion, String releaseTime, String time, String type)
      Creates an instance of a VersionMeta 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
      javaVersion - the value for the javaVersion 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
      minecraftArguments - the value for the minecraftArguments 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

    • clientUrl

      public String clientUrl()
    • clientSha1

      public String clientSha1()
    • serverUrl

      public String serverUrl()
    • serverSha1

      public String serverSha1()
    • assetIndexId

      public String assetIndexId()
    • assetIndexUrl

      public String assetIndexUrl()
    • assetIndexSha1

      public String assetIndexSha1()
    • download

      public VersionMeta.Download download(String key)
    • isVersionOrNewer

      public boolean isVersionOrNewer(String releaseTime)
    • hasNativesToExtract

      public boolean hasNativesToExtract()
    • javaMajor

      public int javaMajor()
    • 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 the compare method from their corresponding wrapper classes.
      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 VersionMeta.Arguments arguments()
      Returns the value of the arguments record component.
      Returns:
      the value of the arguments record component
    • assetIndex

      public VersionMeta.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, VersionMeta.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
    • javaVersion

      public VersionMeta.JavaVersion javaVersion()
      Returns the value of the javaVersion record component.
      Returns:
      the value of the javaVersion record component
    • libraries

      public List<VersionMeta.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
    • minecraftArguments

      public String minecraftArguments()
      Returns the value of the minecraftArguments record component.
      Returns:
      the value of the minecraftArguments 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