Class ConeEffect

java.lang.Object
de.slikey.effectlib.Effect
de.slikey.effectlib.effect.ConeEffect
All Implemented Interfaces:
Runnable

public class ConeEffect extends Effect
  • Field Details

    • lengthGrow

      public float lengthGrow
      Growing per iteration in the length (0.05)
    • angularVelocity

      public double angularVelocity
      Radials per iteration to spawn the next particle (PI / 16)
    • particles

      public int particles
      Cone-particles per interation (10)
    • radiusGrow

      public float radiusGrow
      Growth in blocks per iteration on the radius (0.006)
    • particlesCone

      public int particlesCone
      Conesize in particles per cone
    • rotation

      public double rotation
      Start-angle or rotation of the cone
    • randomize

      public boolean randomize
      Randomize every cone on creation (false)
    • step

      protected int step
      Current step. Works as counter
  • Constructor Details

  • Method Details

    • reset

      public void reset()
      Description copied from class: Effect
      Effects should override this if they want to be reusable, this is called prior to starting so state can be reset.
      Overrides:
      reset in class Effect
    • onRun

      public void onRun()
      Specified by:
      onRun in class Effect