Class DrawPower

java.lang.Object
mindustry.world.draw.DrawBlock
mindustry.world.draw.DrawPower

public class DrawPower extends DrawBlock
  • Field Details

    • emptyRegion

      public arc.graphics.g2d.TextureRegion emptyRegion
    • fullRegion

      public arc.graphics.g2d.TextureRegion fullRegion
    • suffix

      public String suffix
    • drawPlan

      public boolean drawPlan
    • mixcol

      public boolean mixcol
      If false, fades between emptyRegion and fullRegion instead of mixcol between empty and full colors.
    • emptyLightColor

      public arc.graphics.Color emptyLightColor
    • fullLightColor

      public arc.graphics.Color fullLightColor
    • layer

      public float layer
      Any number <=0 disables layer changes.
  • Constructor Details

    • DrawPower

      public DrawPower()
    • DrawPower

      public DrawPower(String suffix)
  • Method Details

    • draw

      public void draw(mindustry.gen.Building build)
      Description copied from class: DrawBlock
      Draws the block itself.
      Overrides:
      draw in class DrawBlock
    • drawPlan

      public void drawPlan(Block block, BuildPlan plan, arc.util.Eachable<BuildPlan> list)
      Description copied from class: DrawBlock
      Draws the planned version of this block.
      Overrides:
      drawPlan in class DrawBlock
    • icons

      public arc.graphics.g2d.TextureRegion[] icons(Block block)
      Overrides:
      icons in class DrawBlock
      Returns:
      the generated icons to be used for this block.
    • load

      public void load(Block block)
      Description copied from class: DrawBlock
      Load any relevant texture regions.
      Overrides:
      load in class DrawBlock