All Implemented Interfaces:
Comparable<Content>, Senseable, Autotiler

public class Duct extends Block implements Autotiler
  • Field Details

    • speed

      public float speed
    • armored

      public boolean armored
    • transparentColor

      public Color transparentColor
    • topRegions

      public TextureRegion[] topRegions
    • botRegions

      public TextureRegion[] botRegions
    • bridgeReplacement

      @Nullable public Block bridgeReplacement
  • Constructor Details

    • Duct

      public Duct(String name)
  • Method Details

    • setStats

      public void setStats()
      Description copied from class: UnlockableContent
      Initializes stats on demand. Should only be called once. Only called before something is displayed.
      Overrides:
      setStats in class Block
    • 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
    • blendsArmored

      public boolean blendsArmored(Tile tile, int rotation, int otherx, int othery, int otherrot, Block otherblock)
      Specified by:
      blendsArmored in interface Autotiler
    • blends

      public boolean blends(Tile tile, int rotation, int otherx, int othery, int otherrot, Block otherblock)
      Specified by:
      blends in interface Autotiler
    • icons

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

      public void handlePlacementLine(Seq<BuildPlan> plans)
      Description copied from class: Block
      Mutates the given list of plans used during line placement.
      Overrides:
      handlePlacementLine in class Block