Record Class UserDevRunType
java.lang.Object
java.lang.Record
net.neoforged.moddevgradle.internal.UserDevRunType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the value of theargsrecord component.booleanclient()Returns the value of theclientrecord component.booleanReturns the value of thedataGeneratorrecord component.env()Returns the value of theenvrecord component.final booleanIndicates whether some other object is "equal to" this one.booleangameTest()Returns the value of thegameTestrecord component.final inthashCode()Returns a hash code value for this object.jvmArgs()Returns the value of thejvmArgsrecord component.main()Returns the value of themainrecord component.props()Returns the value of thepropsrecord component.booleanserver()Returns the value of theserverrecord component.booleanReturns the value of thesingleInstancerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserDevRunType
public UserDevRunType(boolean singleInstance, String main, List<String> args, List<String> jvmArgs, boolean client, boolean server, boolean dataGenerator, boolean gameTest, Map<String, String> env, Map<String, String> props) Creates an instance of aUserDevRunTyperecord class.- Parameters:
singleInstance- the value for thesingleInstancerecord componentmain- the value for themainrecord componentargs- the value for theargsrecord componentjvmArgs- the value for thejvmArgsrecord componentclient- the value for theclientrecord componentserver- the value for theserverrecord componentdataGenerator- the value for thedataGeneratorrecord componentgameTest- the value for thegameTestrecord componentenv- the value for theenvrecord componentprops- the value for thepropsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
singleInstance
public boolean singleInstance()Returns the value of thesingleInstancerecord component.- Returns:
- the value of the
singleInstancerecord component
-
main
Returns the value of themainrecord component.- Returns:
- the value of the
mainrecord component
-
args
Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-
jvmArgs
Returns the value of thejvmArgsrecord component.- Returns:
- the value of the
jvmArgsrecord component
-
client
public boolean client()Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
server
public boolean server()Returns the value of theserverrecord component.- Returns:
- the value of the
serverrecord component
-
dataGenerator
public boolean dataGenerator()Returns the value of thedataGeneratorrecord component.- Returns:
- the value of the
dataGeneratorrecord component
-
gameTest
public boolean gameTest()Returns the value of thegameTestrecord component.- Returns:
- the value of the
gameTestrecord component
-
env
Returns the value of theenvrecord component.- Returns:
- the value of the
envrecord component
-
props
Returns the value of thepropsrecord component.- Returns:
- the value of the
propsrecord component
-