Package dev.architectury.loom.mcpconfig
Record Class McpConfigFunction
java.lang.Object
java.lang.Record
dev.architectury.loom.mcpconfig.McpConfigFunction
- Record Components:
version- the Gradle-style dependency string of the programargs- the command-line argumentsjvmArgs- the JVM argumentsrepo- the Maven repository to download the dependency from, ornullif not specified
- All Implemented Interfaces:
Serializable
public record McpConfigFunction(String version, List<ConfigValue> args, List<ConfigValue> jvmArgs, @Nullable String repo)
extends Record
implements Serializable
An executable program for steps.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMcpConfigFunction(String version, List<ConfigValue> args, List<ConfigValue> jvmArgs, @Nullable String repo) Creates an instance of aMcpConfigFunctionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the value of theargsrecord component.download(StepLogic.SetupContext executionContext) final booleanIndicates whether some other object is "equal to" this one.static McpConfigFunctionfromJson(com.google.gson.JsonObject json) final inthashCode()Returns a hash code value for this object.jvmArgs()Returns the value of thejvmArgsrecord component.@Nullable Stringrepo()Returns the value of thereporecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
McpConfigFunction
public McpConfigFunction(String version, List<ConfigValue> args, List<ConfigValue> jvmArgs, @Nullable String repo) Creates an instance of aMcpConfigFunctionrecord class.
-
-
Method Details
-
download
- Throws:
IOException
-
fromJson
-
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). -
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord 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
-
repo
Returns the value of thereporecord component.- Returns:
- the value of the
reporecord component
-