Class DnaEffect

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

public class DnaEffect extends Effect
  • Field Details

    • particleHelix

      public org.bukkit.Particle particleHelix
      ParticleType of spawned particle
    • colorHelix

      public org.bukkit.Color colorHelix
    • particleBase1

      public org.bukkit.Particle particleBase1
      Particle of base 1
    • colorBase1

      public org.bukkit.Color colorBase1
    • particleBase2

      public org.bukkit.Particle particleBase2
      Particle of base 2
    • colorBase2

      public org.bukkit.Color colorBase2
    • radials

      public double radials
      Radials to turn per step
    • radius

      public float radius
      Radius of dna-double-helix
    • particlesHelix

      public int particlesHelix
      Particles to spawn per interation
    • particlesBase

      public int particlesBase
      Particles per base
    • length

      public float length
      Length of the dna-double-helix
    • grow

      public float grow
      Growth per particle
    • baseInterval

      public float baseInterval
      Particles between every base
    • 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
    • drawParticle

      protected void drawParticle(org.bukkit.Location location, org.bukkit.util.Vector v, org.bukkit.Particle particle, org.bukkit.Color color)