Class EnhancedFlowAction.EnhancedFlowParameters<P extends EnhancedProblems>

java.lang.Object
net.minecraftforge.gradleutils.shared.EnhancedFlowAction.EnhancedFlowParameters<P>
Type Parameters:
P - The type of EnhancedProblems to 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
The parameters, including the getFailure() property and EnhancedProblems through problems().
  • Constructor Details

    • EnhancedFlowParameters

      protected EnhancedFlowParameters(Class<P> problemsType)
      The base constructor for the parameters.
      Parameters:
      problemsType - The type of enhanced problems that will be accessible through problems().
      Implementation Requirements:
      Must override with public and @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

      public P problems()
      The enhanced problems to be accessed in EnhancedFlowAction.run(EnhancedFlowParameters). They must be contained within the parameters as Gradle does not currently support injecting Problems into flow actions.
      Returns:
      The enhanced problems
      See Also:
    • getFailure

      @Optional @Input public org.gradle.api.provider.Property<Throwable> 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