Class ConsumeItemExplode


public class ConsumeItemExplode extends ConsumeItemFilter
Causes a block to explode when explosive items are moved into it.
  • Field Details

    • damage

      public float damage
    • threshold

      public float threshold
    • baseChance

      public float baseChance
    • explodeEffect

      public Effect explodeEffect
  • Constructor Details

    • ConsumeItemExplode

      public ConsumeItemExplode(float threshold)
    • ConsumeItemExplode

      public ConsumeItemExplode()
  • Method Details

    • update

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

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

      public void trigger(mindustry.gen.Building build)
      Description copied from class: Consume
      Called when a consumption is triggered manually.
      Overrides:
      trigger in class ConsumeItemFilter
    • display

      public void display(Stats stats)
      Overrides:
      display in class ConsumeItemFilter
    • apply

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

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