Class Lightning

java.lang.Object
mindustry.entities.Lightning

public class Lightning extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    create(Team team, Color color, float damage, float x, float y, float targetAngle, int length)
    Create a lighting branch at a location.
    static void
    create(mindustry.gen.Bullet bullet, Color color, float damage, float x, float y, float targetAngle, int length)
    Create a lighting branch at a location.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Lightning

      public Lightning()
  • Method Details

    • create

      public static void create(Team team, Color color, float damage, float x, float y, float targetAngle, int length)
      Create a lighting branch at a location. Use Team.derelict to damage everyone.
    • create

      public static void create(mindustry.gen.Bullet bullet, Color color, float damage, float x, float y, float targetAngle, int length)
      Create a lighting branch at a location. Uses bullet parameters.