Package net.fabricmc.loom.task
Record Class GenVsCodeProjectTask.VsCodeConfiguration
java.lang.Object
java.lang.Record
net.fabricmc.loom.task.GenVsCodeProjectTask.VsCodeConfiguration
- All Implemented Interfaces:
Serializable
- Enclosing class:
GenVsCodeProjectTask
public static record GenVsCodeProjectTask.VsCodeConfiguration(String type, String name, String id, String request, String cwd, String console, boolean stopOnEntry, String mainClass, String vmArgs, String args, Map<String,Object> env, String projectName, String runDir)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVsCodeConfiguration(String type, String name, String id, String request, String cwd, String console, boolean stopOnEntry, String mainClass, String vmArgs, String args, Map<String, Object> env, String projectName, String runDir) Creates an instance of aVsCodeConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the value of theargsrecord component.console()Returns the value of theconsolerecord component.cwd()Returns the value of thecwdrecord component.env()Returns the value of theenvrecord component.final booleanIndicates whether some other object is "equal to" this one.fromRunConfig(org.gradle.api.Project project, RunConfiguration config) final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of themainClassrecord component.name()Returns the value of thenamerecord component.Returns the value of theprojectNamerecord component.request()Returns the value of therequestrecord component.runDir()Returns the value of therunDirrecord component.booleanReturns the value of thestopOnEntryrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.vmArgs()Returns the value of thevmArgsrecord component.
-
Constructor Details
-
VsCodeConfiguration
public VsCodeConfiguration(String type, String name, String id, String request, String cwd, String console, boolean stopOnEntry, String mainClass, String vmArgs, String args, Map<String, Object> env, String projectName, String runDir) Creates an instance of aVsCodeConfigurationrecord class.- Parameters:
type- the value for thetyperecord componentname- the value for thenamerecord componentid- the value for theidrecord componentrequest- the value for therequestrecord componentcwd- the value for thecwdrecord componentconsole- the value for theconsolerecord componentstopOnEntry- the value for thestopOnEntryrecord componentmainClass- the value for themainClassrecord componentvmArgs- the value for thevmArgsrecord componentargs- the value for theargsrecord componentenv- the value for theenvrecord componentprojectName- the value for theprojectNamerecord componentrunDir- the value for therunDirrecord component
-
-
Method Details
-
fromRunConfig
public static GenVsCodeProjectTask.VsCodeConfiguration fromRunConfig(org.gradle.api.Project project, RunConfiguration config) -
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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
request
Returns the value of therequestrecord component.- Returns:
- the value of the
requestrecord component
-
cwd
Returns the value of thecwdrecord component.- Returns:
- the value of the
cwdrecord component
-
console
Returns the value of theconsolerecord component.- Returns:
- the value of the
consolerecord component
-
stopOnEntry
public boolean stopOnEntry()Returns the value of thestopOnEntryrecord component.- Returns:
- the value of the
stopOnEntryrecord component
-
mainClass
Returns the value of themainClassrecord component.- Returns:
- the value of the
mainClassrecord component
-
vmArgs
Returns the value of thevmArgsrecord component.- Returns:
- the value of the
vmArgsrecord component
-
args
Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-
env
Returns the value of theenvrecord component.- Returns:
- the value of the
envrecord component
-
projectName
Returns the value of theprojectNamerecord component.- Returns:
- the value of the
projectNamerecord component
-
runDir
Returns the value of therunDirrecord component.- Returns:
- the value of the
runDirrecord component
-