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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final classstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionVersionMeta(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 aVersionMetarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.Returns the value of theassetIndexrecord component.assets()Returns the value of theassetsrecord component.intReturns the value of thecomplianceLevelrecord component.Returns the value of thedownloadsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanid()Returns the value of theidrecord component.booleanisVersionOrNewer(String releaseTime) intReturns the value of thejavaVersionrecord component.Returns the value of thelibrariesrecord component.logging()Returns the value of theloggingrecord component.Returns the value of themainClassrecord component.Returns the value of theminecraftArgumentsrecord component.intReturns the value of theminimumLauncherVersionrecord component.Returns the value of thereleaseTimerecord component.time()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
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 aVersionMetarecord class.- Parameters:
arguments- the value for theargumentsrecord componentassetIndex- the value for theassetIndexrecord componentassets- the value for theassetsrecord componentcomplianceLevel- the value for thecomplianceLevelrecord componentdownloads- the value for thedownloadsrecord componentid- the value for theidrecord componentjavaVersion- the value for thejavaVersionrecord componentlibraries- the value for thelibrariesrecord componentlogging- the value for theloggingrecord componentmainClass- the value for themainClassrecord componentminecraftArguments- the value for theminecraftArgumentsrecord componentminimumLauncherVersion- the value for theminimumLauncherVersionrecord componentreleaseTime- the value for thereleaseTimerecord componenttime- the value for thetimerecord componenttype- the value for thetyperecord component
-
-
Method Details
-
clientUrl
-
clientSha1
-
serverUrl
-
serverSha1
-
assetIndexId
-
assetIndexUrl
-
assetIndexSha1
-
download
-
isVersionOrNewer
-
hasNativesToExtract
public boolean hasNativesToExtract() -
javaMajor
public int javaMajor() -
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-
assetIndex
Returns the value of theassetIndexrecord component.- Returns:
- the value of the
assetIndexrecord component
-
assets
Returns the value of theassetsrecord component.- Returns:
- the value of the
assetsrecord component
-
complianceLevel
public int complianceLevel()Returns the value of thecomplianceLevelrecord component.- Returns:
- the value of the
complianceLevelrecord component
-
downloads
Returns the value of thedownloadsrecord component.- Returns:
- the value of the
downloadsrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
javaVersion
Returns the value of thejavaVersionrecord component.- Returns:
- the value of the
javaVersionrecord component
-
libraries
Returns the value of thelibrariesrecord component.- Returns:
- the value of the
librariesrecord component
-
logging
Returns the value of theloggingrecord component.- Returns:
- the value of the
loggingrecord component
-
mainClass
Returns the value of themainClassrecord component.- Returns:
- the value of the
mainClassrecord component
-
minecraftArguments
Returns the value of theminecraftArgumentsrecord component.- Returns:
- the value of the
minecraftArgumentsrecord component
-
minimumLauncherVersion
public int minimumLauncherVersion()Returns the value of theminimumLauncherVersionrecord component.- Returns:
- the value of the
minimumLauncherVersionrecord component
-
releaseTime
Returns the value of thereleaseTimerecord component.- Returns:
- the value of the
releaseTimerecord component
-
time
Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-