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 aDiscoveryDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the value of theargumentsrecord component.final booleanIndicates whether some other object is "equal to" this one.gameDir()Returns the value of thegameDirrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelaunchTargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
gameDir
The field for thegameDirrecord component. -
launchTarget
The field for thelaunchTargetrecord component. -
arguments
The field for theargumentsrecord component.
-
-
Constructor Details
-
DiscoveryData
Creates an instance of aDiscoveryDatarecord class.- Parameters:
gameDir- the value for thegameDirrecord componentlaunchTarget- the value for thelaunchTargetrecord componentarguments- the value for theargumentsrecord 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 thegameDirrecord component.- Returns:
- the value of the
gameDirrecord component
-
launchTarget
Returns the value of thelaunchTargetrecord component.- Returns:
- the value of the
launchTargetrecord component
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-