public class CreatorClock extends Creator
  • Constructor Details

  • Method Details

    • generateSteps

      protected List<Step> generateSteps() throws InstantiationException
      Description copied from class: ToolUser
      Generates the list of Steps that together will make up the ToolUser.procedure.
      Specified by:
      generateSteps in class ToolUser
      Returns:
      The list of Steps that together will make up the ToolUser.procedure.
      Throws:
      InstantiationException - When a step's factory is incomplete or otherwise invalid.
    • completeSelectHourArmStep

      protected boolean completeSelectHourArmStep(ILocation loc)
      Selects the side of the hour arm that will be the hour arm of the clock.
      Parameters:
      loc - The selected location.
      Returns:
      True if step finished successfully.
    • provideSecondPos

      protected CompletableFuture<Boolean> provideSecondPos(ILocation loc)
      Description copied from class: Creator
      Provides the second location of the selection and advances the procedure if successful.
      Overrides:
      provideSecondPos in class Creator
      Parameters:
      loc - The second location of the cuboid.
      Returns:
      True if setting the location was successful.
    • getValidOpenDirections

      public Set<MovementDirection> getValidOpenDirections()
      Description copied from class: Creator
      Gets the list of valid open directions for this type. It returns a subset of StructureType.getValidMovementDirections() based on the current physical aspects of the Structure.
      Overrides:
      getValidOpenDirections in class Creator
      Returns:
      The list of valid open directions for this type given its current physical dimensions.
    • giveTool

      protected void giveTool()
      Description copied from class: Creator
      Method used to give the AnimatedArchitecture tool to the user.

      Overriding methods may call ToolUser.giveTool(String, String, Text).

      Specified by:
      giveTool in class Creator
    • updateOpenDirection

      protected void updateOpenDirection()
      Calculates the open direction from the current physical aspects of this clock.
    • constructStructure

      protected Structure constructStructure()
      Description copied from class: Creator
      Constructs the structure at the end of the creation process.
      Overrides:
      constructStructure in class Creator
      Returns:
      The newly-created structure.
    • getHourArmSide

      @Nullable protected final @Nullable BlockFace getHourArmSide()
    • isNorthSouthAligned

      protected final boolean isNorthSouthAligned()
    • toString

      public String toString()
      Overrides:
      toString in class Creator