Class PowerBlockRelocator

java.lang.Object
nl.pim16aap2.animatedarchitecture.core.tooluser.ToolUser
nl.pim16aap2.animatedarchitecture.core.tooluser.PowerBlockRelocator

public class PowerBlockRelocator extends ToolUser
Represents a tool user that relocates a powerblock to a new position.
  • Constructor Details

  • Method Details

    • moveToLoc

      protected CompletableFuture<Boolean> moveToLoc(ILocation loc)
    • 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.
    • getNewLoc

      protected final @Nullable ILocation getNewLoc()
      Gets the new location of the powerblock.
      Returns:
      The new location of the powerblock. May be null if the powerblock has not been relocated yet.
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class ToolUser