Class SolidPump

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

public class SolidPump extends Pump
Pump that makes liquid from solids and takes in power. Only works on solid floor blocks.
  • Field Details

    • result

      public Liquid result
    • updateEffect

      public Effect updateEffect
    • updateEffectChance

      public float updateEffectChance
    • rotateSpeed

      public float rotateSpeed
    • baseEfficiency

      public float baseEfficiency
    • attribute

      @Nullable public Attribute attribute
      Attribute that is checked when calculating output.
    • rotatorRegion

      public TextureRegion rotatorRegion
  • Constructor Details

    • SolidPump

      public SolidPump(String name)
  • Method Details

    • 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 Pump
    • setBars

      public void setBars()
      Overrides:
      setBars in class Pump
    • 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 Pump
    • canPlaceOn

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

      public boolean outputsItems()
      Overrides:
      outputsItems in class Block
    • canPump

      protected boolean canPump(Tile tile)
      Overrides:
      canPump in class Pump
    • icons

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