Class Conduit

All Implemented Interfaces:
Comparable<Content>, Senseable, Autotiler
Direct Known Subclasses:
ArmoredConduit

public class Conduit extends LiquidBlock implements Autotiler
  • Field Details

    • timerFlow

      public final int timerFlow
    • botColor

      public Color botColor
    • topRegions

      public TextureRegion[] topRegions
    • botRegions

      public TextureRegion[] botRegions
    • capRegion

      public TextureRegion capRegion
    • rotateRegions

      public TextureRegion[][][] rotateRegions
      indices: [rotation] [fluid type] [frame]
    • padCorners

      public boolean padCorners
      If true, the liquid region is padded at corners, so it doesn't stick out.
    • leaks

      public boolean leaks
    • junctionReplacement

      @Nullable public Block junctionReplacement
    • bridgeReplacement

      @Nullable public Block bridgeReplacement
    • rotBridgeReplacement

      @Nullable public Block rotBridgeReplacement
  • Constructor Details

    • Conduit

      public Conduit(String name)
  • Method Details

    • init

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

      public void load()
      Description copied from class: Content
      Called after all content is created, only on non-headless versions. Use for loading regions or other image data.
      Overrides:
      load in class Block
    • drawPlanRegion

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

      public Block getReplacement(BuildPlan req, Seq<BuildPlan> plans)
      Overrides:
      getReplacement in class Block
      Returns:
      a possible replacement for this block when placed in a line by the player.
    • blends

      public boolean blends(Tile tile, int rotation, int otherx, int othery, int otherrot, Block otherblock)
      Specified by:
      blends in interface Autotiler
    • 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
    • icons

      public TextureRegion[] icons()
      Overrides:
      icons in class LiquidBlock