Class PowerGenerator

All Implemented Interfaces:
Comparable<Content>, Senseable
Direct Known Subclasses:
ConsumeGenerator, ImpactReactor, NuclearReactor, SolarGenerator, ThermalGenerator, VariableReactor

public class PowerGenerator extends PowerDistributor
  • Field Details

    • powerProduction

      public float powerProduction
      The amount of power produced per tick in case of an efficiency of 1.0, which represents 100%.
    • generationType

      public Stat generationType
    • drawer

      public DrawBlock drawer
    • explosionRadius

      public int explosionRadius
    • explosionDamage

      public int explosionDamage
    • explodeEffect

      public Effect explodeEffect
    • explodeSound

      public Sound explodeSound
    • explosionPuddles

      public int explosionPuddles
    • explosionPuddleRange

      public float explosionPuddleRange
    • explosionPuddleAmount

      public float explosionPuddleAmount
    • explosionPuddleLiquid

      @Nullable public Liquid explosionPuddleLiquid
    • explosionMinWarmup

      public float explosionMinWarmup
    • explosionShake

      public float explosionShake
    • explosionShakeDuration

      public float explosionShakeDuration
  • Constructor Details

    • PowerGenerator

      public PowerGenerator(String name)
  • Method Details

    • icons

      public TextureRegion[] icons()
      Overrides:
      icons in class Block
    • load

      public void load()
      Description copied from class: Content
      Called after all content is created, only on non-headless versions. Use for loading regions or other image data.
      Overrides:
      load 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 Block
    • setBars

      public void setBars()
      Overrides:
      setBars in class Block
    • drawPlanRegion

      public void drawPlanRegion(BuildPlan plan, Eachable<BuildPlan> list)
      Overrides:
      drawPlanRegion in class Block
    • outputsItems

      public boolean outputsItems()
      Overrides:
      outputsItems in class Block