Class WaveEffect

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

public class WaveEffect extends Effect
  • Field Details

    • mainParticle

      public org.bukkit.Particle mainParticle
    • cloudParticle

      public org.bukkit.Particle cloudParticle
    • cloudColor

      public org.bukkit.Color cloudColor
    • velocity

      public org.bukkit.util.Vector velocity
      Velocity of the wave Call velocity.zero() if the wave should be stationary
    • waterCache

      protected final Collection<org.bukkit.util.Vector> waterCache
      Caches the Vectors used to build the wave
    • cloudCache

      protected final Collection<org.bukkit.util.Vector> cloudCache
      Caches the Vectors used to build the wave
    • particlesFront

      public int particlesFront
      Amount of particles forming the tube
    • particlesBack

      public int particlesBack
      Amount of particles forming the back
    • rows

      public int rows
      Rows to build the wave in the width
    • lengthFront

      public float lengthFront
      The distance from the origin location to the first point of the wave
    • lengthBack

      public float lengthBack
      The distance from the origin location to the last point of the wave
    • depthFront

      public float depthFront
      Depth of the parabola tube
    • heightBack

      public float heightBack
      Height of the parabola arc forming the back
    • height

      public float height
      Height of the wave in blocks
    • width

      public float width
      Width of the wave in blocks
    • firstStep

      protected boolean firstStep
      Do not mess with the following attributes. They build a cache to gain performance.
  • 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
    • invalidate

      public void invalidate(org.bukkit.Location location)
      Call this method when you change anything related to the creation of the wave
    • onRun

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