Package dev.architectury.loom.mcpconfig
Class McpExecutorBuilder
java.lang.Object
dev.architectury.loom.mcpconfig.McpExecutorBuilder
Builds an
McpExecutor's options from the project state
and enqueued steps.-
Constructor Summary
ConstructorsConstructorDescriptionMcpExecutorBuilder(org.gradle.api.Project project, MinecraftProvider minecraftProvider, Path cache, McpConfigProvider provider, String environment) -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.gradle.api.provider.Provider<McpExecutor.Options> build()Builds options for an executor that runs all queued steps and their dependencies.Enqueues a step and its dependencies to be executed.boolean判断当前 MCP 配置是否声明了指定步骤.voidsetStepLogicProvider(@Nullable StepLogic.StepLogicProvider stepLogicProvider) Sets the custom step logic provider of this executor.
-
Constructor Details
-
McpExecutorBuilder
public McpExecutorBuilder(org.gradle.api.Project project, MinecraftProvider minecraftProvider, Path cache, McpConfigProvider provider, String environment)
-
-
Method Details
-
addConfig
-
enqueue
Enqueues a step and its dependencies to be executed.- Parameters:
step- the name of the step- Returns:
- this builder
-
hasStep
判断当前 MCP 配置是否声明了指定步骤.- Parameters:
step- 步骤名称- Returns:
- 配置中存在该步骤时为 true
-
build
Builds options for an executor that runs all queued steps and their dependencies.- Returns:
- the options
- Throws:
IOException
-
setStepLogicProvider
Sets the custom step logic provider of this executor.- Parameters:
stepLogicProvider- the provider, or null to disable
-