Package net.javasauce.ss.util
Record Class VersionManifest
java.lang.Object
java.lang.Record
net.javasauce.ss.util.VersionManifest
public record VersionManifest(@Nullable VersionManifest.Arguments arguments, @Nullable Map<String,VersionManifest.Download> downloads, @Nullable String id, VersionManifest.McJavaVersion javaVersion, @Nullable List<VersionManifest.Library> libraries, @Nullable VersionManifest.Logging logging, @Nullable String mainClass, @Nullable String minecraftArguments, int minimumLauncherVersion, @Nullable Date time, @Nullable Date releaseTime, @Nullable String type, @Nullable String inheritsFrom)
extends Record
Created by covers1624 on 25/10/24.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordstatic final recordstatic interfacestatic classstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic enumstatic classstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionVersionManifest(@Nullable VersionManifest.Arguments arguments, @Nullable Map<String, VersionManifest.Download> downloads, @Nullable String id, VersionManifest.McJavaVersion javaVersion, @Nullable List<VersionManifest.Library> libraries, @Nullable VersionManifest.Logging logging, @Nullable String mainClass, @Nullable String minecraftArguments, int minimumLauncherVersion, @Nullable Date time, @Nullable Date releaseTime, @Nullable String type, @Nullable String inheritsFrom) Creates an instance of aVersionManifestrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable VersionManifest.ArgumentsReturns the value of theargumentsrecord component.net.covers1624.jdkutils.JavaVersionReturns 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.id()Returns the value of theidrecord component.@Nullable StringReturns the value of theinheritsFromrecord component.Returns the value of thejavaVersionrecord component.Returns the value of thelibrariesrecord component.static VersionManifest@Nullable VersionManifest.Logginglogging()Returns the value of theloggingrecord component.@Nullable StringReturns the value of themainClassrecord component.@Nullable StringReturns the value of theminecraftArgumentsrecord component.intReturns the value of theminimumLauncherVersionrecord component.static Path@Nullable DateReturns the value of thereleaseTimerecord component.@Nullable Datetime()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
-
VersionManifest
public VersionManifest(@Nullable @Nullable VersionManifest.Arguments arguments, @Nullable @Nullable Map<String, VersionManifest.Download> downloads, @Nullable @Nullable String id, @Nullable VersionManifest.McJavaVersion javaVersion, @Nullable @Nullable List<VersionManifest.Library> libraries, @Nullable @Nullable VersionManifest.Logging logging, @Nullable @Nullable String mainClass, @Nullable @Nullable String minecraftArguments, int minimumLauncherVersion, @Nullable @Nullable Date time, @Nullable @Nullable Date releaseTime, @Nullable @Nullable String type, @Nullable @Nullable String inheritsFrom) Creates an instance of aVersionManifestrecord class.- Parameters:
arguments- the value for theargumentsrecord 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 componenttime- the value for thetimerecord componentreleaseTime- the value for thereleaseTimerecord componenttype- the value for thetyperecord componentinheritsFrom- the value for theinheritsFromrecord component
-
-
Method Details
-
loadFrom
- Throws:
IOException
-
pathForId
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
computeJavaVersion
public net.covers1624.jdkutils.JavaVersion computeJavaVersion() -
computeBranchName
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
downloads
Returns the value of thedownloadsrecord component.- Returns:
- the value of the
downloadsrecord component
-
libraries
Returns the value of thelibrariesrecord component.- Returns:
- the value of the
librariesrecord component
-
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 '=='. -
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-
javaVersion
Returns the value of thejavaVersionrecord component.- Returns:
- the value of the
javaVersionrecord 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
-
time
Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
releaseTime
Returns the value of thereleaseTimerecord component.- Returns:
- the value of the
releaseTimerecord component
-
inheritsFrom
Returns the value of theinheritsFromrecord component.- Returns:
- the value of the
inheritsFromrecord component
-