Class Conveyor

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

public class Conveyor extends Block implements Autotiler
  • Field Details

    • regions

      public TextureRegion[][] regions
    • speed

      public float speed
    • displayedSpeed

      public float displayedSpeed
    • junctionReplacement

      @Nullable public Block junctionReplacement
    • bridgeReplacement

      @Nullable public Block bridgeReplacement
  • Constructor Details

    • Conveyor

      public Conveyor(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
    • blends

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

      public boolean canReplace(Block other)
      Overrides:
      canReplace 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
    • icons

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

      public boolean isAccessible()
      Overrides:
      isAccessible 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.