Class AtomEffect

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

public class AtomEffect extends Effect
  • Field Details

    • particleNucleus

      public org.bukkit.Particle particleNucleus
      ParticleType of the nucleus
    • colorNucleus

      public org.bukkit.Color colorNucleus
    • particleOrbital

      public org.bukkit.Particle particleOrbital
      ParticleType of orbitals
    • colorOrbital

      public org.bukkit.Color colorOrbital
    • radius

      public double radius
      Radius of the atom
    • radiusNucleus

      public float radiusNucleus
      Radius of the nucleus as a fraction of the atom-radius
    • particlesNucleus

      public int particlesNucleus
      Particles to be spawned in the nucleus per iteration
    • particlesOrbital

      public int particlesOrbital
      Particles to be spawned per orbital per iteration
    • orbitals

      public int orbitals
      Orbitals around the nucleus
    • rotation

      public double rotation
      Rotation around the Y-axis
    • orient

      public boolean orient
      Whether or not to orient to the direction of the source location
    • angularVelocity

      public double angularVelocity
      Velocity of the orbitals
    • step

      protected int step
      Internal 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