Class DrawFrames

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

public class DrawFrames extends DrawBlock
  • Field Details

    • frames

      public int frames
      Number of frames to draw.
    • interval

      public float interval
      Ticks between frames.
    • sine

      public boolean sine
      If true, frames wil alternate back and forth in a sine wave.
    • regions

      public TextureRegion[] regions
  • Constructor Details

    • DrawFrames

      public DrawFrames()
  • Method Details

    • draw

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

      public 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