Class ConsumeGenerator

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

public class ConsumeGenerator extends PowerGenerator
A generator that just takes in certain items or liquids.
  • Field Details

    • itemDuration

      public float itemDuration
      The time in number of ticks during which a single item will produce power.
    • warmupSpeed

      public float warmupSpeed
    • effectChance

      public float effectChance
    • generateEffect

      public Effect generateEffect
    • consumeEffect

      public Effect consumeEffect
    • generateEffectRange

      public float generateEffectRange
    • outputLiquid

      @Nullable public LiquidStack outputLiquid
    • explodeOnFull

      public boolean explodeOnFull
      If true, this block explodes when outputLiquid exceeds capacity.
    • filterItem

      @Nullable public ConsumeItemFilter filterItem
    • filterLiquid

      @Nullable public ConsumeLiquidFilter filterLiquid
  • Constructor Details

    • ConsumeGenerator

      public ConsumeGenerator(String name)
  • Method Details

    • setBars

      public void setBars()
      Overrides:
      setBars in class PowerGenerator
    • init

      public void init()
      Description copied from class: Block
      Called after all blocks are created.
      Overrides:
      init in class Block
    • 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 PowerGenerator