Class ConsumeLiquidFilter

Direct Known Subclasses:
ConsumeCoolant, ConsumeLiquidFlammable

public class ConsumeLiquidFilter extends ConsumeLiquidBase
  • Field Details

  • Constructor Details

    • ConsumeLiquidFilter

      public ConsumeLiquidFilter(Boolf<Liquid> liquid, float amount)
    • ConsumeLiquidFilter

      public ConsumeLiquidFilter()
  • Method Details

    • apply

      public void apply(Block block)
      Description copied from class: Consume
      Apply extra filters to a block.
      Overrides:
      apply in class ConsumeLiquidBase
    • build

      public void build(mindustry.gen.Building build, Table table)
      Overrides:
      build in class Consume
    • update

      public void update(mindustry.gen.Building build)
      Overrides:
      update in class Consume
    • efficiency

      public float efficiency(mindustry.gen.Building build)
      Overrides:
      efficiency in class Consume
      Returns:
      [0, 1] efficiency multiplier based on input. Returns 0 if not valid in subclasses. Should return fraction if needs are partially met.
    • getConsumed

      @Nullable public Liquid getConsumed(mindustry.gen.Building build)
    • display

      public void display(Stats stats)
      Overrides:
      display in class Consume