Class ConsumeItems

java.lang.Object
mindustry.world.consumers.Consume
mindustry.world.consumers.ConsumeItems

public class ConsumeItems extends Consume
  • Field Details

  • Constructor Details

    • ConsumeItems

      public ConsumeItems(ItemStack[] items)
    • ConsumeItems

      protected ConsumeItems()
      Mods.
  • Method Details

    • apply

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

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

      public void trigger(mindustry.gen.Building build)
      Description copied from class: Consume
      Called when a consumption is triggered manually.
      Overrides:
      trigger 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.
    • display

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