Class LineEffect

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

public class LineEffect extends Effect
  • Field Details

    • isZigZag

      public boolean isZigZag
      Should it do a zig zag?
    • zigZags

      public int zigZags
      Number of zig zags in the line
    • zigZagOffset

      public org.bukkit.util.Vector zigZagOffset
      Direction of zig-zags
    • zigZagRelativeOffset

      public org.bukkit.util.Vector zigZagRelativeOffset
      Relative direction of zig-zags
    • particles

      public int particles
      Particles per arc
    • length

      public double length
      Length of arc A non-zero value here will use a length instead of the target endpoint
    • maxLength

      public double maxLength
      Max length of arc A non-zero value here will use this as the upper bound for the computed length
    • subEffectAtEnd

      public org.bukkit.configuration.ConfigurationSection subEffectAtEnd
    • subEffectAtEndCached

      public org.bukkit.configuration.ConfigurationSection subEffectAtEndCached
    • zag

      protected boolean zag
      Internal boolean
    • step

      protected int step
      Internal counter
    • effectAtEndCached

      protected Effect effectAtEndCached
      Internal effectAtEnd instance
  • 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
    • initialize

      protected void initialize()
      Overrides:
      initialize in class Effect