Package cpw.mods.modlauncher
Record Class ArgumentHandler.DiscoveryData
java.lang.Object
java.lang.Record
cpw.mods.modlauncher.ArgumentHandler.DiscoveryData
- Enclosing class:
ArgumentHandler
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDiscoveryData
(Path gameDir, String launchTarget, String[] arguments) Creates an instance of aDiscoveryData
record class. -
Method Summary
Modifier and TypeMethodDescriptionString[]
Returns the value of thearguments
record component.final boolean
Indicates whether some other object is "equal to" this one.gameDir()
Returns the value of thegameDir
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelaunchTarget
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
gameDir
The field for thegameDir
record component. -
launchTarget
The field for thelaunchTarget
record component. -
arguments
The field for thearguments
record component.
-
-
Constructor Details
-
DiscoveryData
Creates an instance of aDiscoveryData
record class.- Parameters:
gameDir
- the value for thegameDir
record componentlaunchTarget
- the value for thelaunchTarget
record componentarguments
- the value for thearguments
record component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
gameDir
Returns the value of thegameDir
record component.- Returns:
- the value of the
gameDir
record component
-
launchTarget
Returns the value of thelaunchTarget
record component.- Returns:
- the value of the
launchTarget
record component
-
arguments
Returns the value of thearguments
record component.- Returns:
- the value of the
arguments
record component
-