Class EnhancedFlowAction.EnhancedFlowParameters<P extends EnhancedProblems>
java.lang.Object
net.minecraftforge.gradleutils.shared.EnhancedFlowAction.EnhancedFlowParameters<P>
- Type Parameters:
P- The type ofEnhancedProblemsto use
- All Implemented Interfaces:
org.gradle.api.flow.FlowParameters
- Enclosing class:
EnhancedFlowAction<P extends EnhancedFlowAction.EnhancedFlowParameters<?>>
public abstract static class EnhancedFlowAction.EnhancedFlowParameters<P extends EnhancedProblems>
extends Object
implements org.gradle.api.flow.FlowParameters
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.flow.FlowParameters
org.gradle.api.flow.FlowParameters.None -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEnhancedFlowParameters(Class<P> problemsType) The base constructor for the parameters. -
Method Summary
Modifier and TypeMethodDescriptionorg.gradle.api.provider.Property<Throwable> The failure that was thrown by Gradle.protected abstract org.gradle.api.model.ObjectFactoryThe object factory provided by Gradle services.problems()The enhanced problems to be accessed inEnhancedFlowAction.run(EnhancedFlowParameters).
-
Constructor Details
-
EnhancedFlowParameters
The base constructor for the parameters.- Parameters:
problemsType- The type of enhanced problems that will be accessible throughproblems().- Implementation Requirements:
- Must override with
publicand@Inject
-
-
Method Details
-
getObjects
@Inject protected abstract org.gradle.api.model.ObjectFactory getObjects()The object factory provided by Gradle services.- Returns:
- The object factory
- See Also:
-
problems
The enhanced problems to be accessed inEnhancedFlowAction.run(EnhancedFlowParameters). They must be contained within the parameters as Gradle does not currently support injectingProblemsinto flow actions.- Returns:
- The enhanced problems
- See Also:
-
getFailure
The failure that was thrown by Gradle. If the build did not fail, this property will not be present.- Returns:
- The property for the build failure
-