Record Class ForgeRunTemplate
java.lang.Object
java.lang.Record
dev.architectury.loom.forge.config.ForgeRunTemplate
- All Implemented Interfaces:
org.gradle.api.Named
public record ForgeRunTemplate(String name, String main, List<ConfigValue> args, List<ConfigValue> jvmArgs, Map<String,ConfigValue> env, Map<String,ConfigValue> props)
extends Record
implements org.gradle.api.Named
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.gradle.api.Named
org.gradle.api.Named.Namer -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ForgeRunTemplate> static final com.mojang.serialization.Codec<Map<String, ForgeRunTemplate>> -
Constructor Summary
ConstructorsConstructorDescriptionForgeRunTemplate(String name, String main, List<ConfigValue> args, List<ConfigValue> jvmArgs, Map<String, ConfigValue> env, Map<String, ConfigValue> props) Creates an instance of aForgeRunTemplaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(RunConfiguration settings, ConfigValue.Resolver configValueResolver) args()Returns the value of theargsrecord component.env()Returns the value of theenvrecord component.final booleanIndicates whether some other object is "equal to" this one.getName()final inthashCode()Returns a hash code value for this object.jvmArgs()Returns the value of thejvmArgsrecord component.main()Returns the value of themainrecord component.name()Returns the value of thenamerecord component.props()Returns the value of thepropsrecord component.resolve(ConfigValue.Resolver configValueResolver) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
MAP_CODEC
-
-
Constructor Details
-
ForgeRunTemplate
public ForgeRunTemplate(String name, String main, List<ConfigValue> args, List<ConfigValue> jvmArgs, Map<String, ConfigValue> env, Map<String, ConfigValue> props) Creates an instance of aForgeRunTemplaterecord class.- Parameters:
name- the value for thenamerecord componentmain- the value for themainrecord componentargs- the value for theargsrecord componentjvmArgs- the value for thejvmArgsrecord componentenv- the value for theenvrecord componentprops- the value for thepropsrecord component
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.gradle.api.Named
-
applyTo
-
resolve
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord 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
-
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
-