Class DirectionBridge

All Implemented Interfaces:
Comparable<Content>, Senseable
Direct Known Subclasses:
DirectionLiquidBridge, DuctBridge

public class DirectionBridge extends Block
  • Field Details

  • Constructor Details

    • DirectionBridge

      public DirectionBridge(String name)
  • Method Details

    • init

      public void init()
      Description copied from class: Block
      Called after all blocks are created.
      Overrides:
      init in class Block
    • drawPlanRegion

      public void drawPlanRegion(BuildPlan plan, Eachable<BuildPlan> list)
      Overrides:
      drawPlanRegion in class Block
    • drawPlanConfigTop

      public void drawPlanConfigTop(BuildPlan plan, Eachable<BuildPlan> list)
      Overrides:
      drawPlanConfigTop in class Block
    • icons

      public TextureRegion[] icons()
      Overrides:
      icons in class Block
    • changePlacementPath

      public void changePlacementPath(Seq<Point2> points, int rotation)
      Description copied from class: Block
      Mutates the given list of points used during line placement.
      Overrides:
      changePlacementPath in class Block
    • drawPlace

      public void drawPlace(int x, int y, int rotation, boolean valid, boolean line)
    • drawPlace

      public void drawPlace(int x, int y, int rotation, boolean valid)
      Description copied from class: Block
      Drawn when you are placing a block.
      Overrides:
      drawPlace in class Block
    • drawBridge

      public void drawBridge(int rotation, float x1, float y1, float x2, float y2, @Nullable Color liquidColor)
    • positionsValid

      public boolean positionsValid(int x1, int y1, int x2, int y2)