Interface NeedsExecutionBuilderStage


public interface NeedsExecutionBuilderStage
A stage in a command builder where requirements have already been specified and execution details are required. The next stage is a NeedsNameBuilderStage from executing(Consumer). Additional requirements may still be added before moving on to the next stage.
  • Method Details

    • requiring

      NeedsExecutionBuilderStage requiring(Mechanism requirement)
      Adds a required mechanism for the command.
      Parameters:
      requirement - A required mechanism. Cannot be null.
      Returns:
      This builder object, for chaining
      Throws:
      NullPointerException - If requirement is null
    • requiring

      NeedsExecutionBuilderStage requiring(Mechanism requirement, Mechanism... extra)
      Adds one or more required mechanisms for the command.
      Parameters:
      requirement - A required mechanism. Cannot be null.
      extra - Any extra required mechanisms. May be empty, but cannot contain null values.
      Returns:
      This builder object, for chaining
      Throws:
      NullPointerException - If requirement is null or extra contains a null value
    • requiring

      Adds required mechanisms for the command.
      Parameters:
      requirements - Any required mechanisms. May be empty, but cannot contain null values.
      Returns:
      This builder object, for chaining
      Throws:
      NullPointerException - If requirements is null or contains a null value.
    • executing

      Sets the function body of the executing command.
      Parameters:
      impl - The command's body. Cannot be null.
      Returns:
      A builder for the next stage of command construction.
      Throws:
      NullPointerException - If impl is null.