Class Pump

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

public class Pump extends LiquidBlock
  • Field Details

    • pumpAmount

      public float pumpAmount
      Pump amount per tile.
    • consumeTime

      public float consumeTime
      Interval in-between item consumptions, if applicable.
    • warmupSpeed

      public float warmupSpeed
    • drawer

      public DrawBlock drawer
  • Constructor Details

    • Pump

      public Pump(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
    • 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
    • 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
    • icons

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

      public boolean canPlaceOn(Tile tile, Team team, int rotation)
      Overrides:
      canPlaceOn in class Block
      Returns:
      whether this block can be placed on the specified tile.
    • setBars

      public void setBars()
      Overrides:
      setBars in class Block
    • canPump

      protected boolean canPump(Tile tile)