Class ModifiedEffect

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

public class ModifiedEffect extends Effect
  • Field Details

    • effect

      public org.bukkit.configuration.ConfigurationSection effect
      The base configuration of the inner effect.
    • effectClass

      public String effectClass
      The class name of the effect to modify. Can be left blank if class is set in effect configuration.
    • xEquation

      public String xEquation
      Move the entire effect's x location around
    • yEquation

      public String yEquation
      Move the entire effect's y location around
    • zEquation

      public String zEquation
      Move the entire effect's z location around
    • variableA

      public double variableA
      The starting value of variable a
    • variableB

      public double variableB
      The starting value of variable b
    • orient

      public boolean orient
      Whether or not to orient the effect in the direction of the source Location If this is set to true, the X axis will represent "forward". This is only used if setting an x, y, z equation.
    • orientPitch

      public boolean orientPitch
      Similar to orient, however this is specific to pitch.
    • parameters

      public Map<String,String> parameters
      Effect parameters to modify each tick, paired with an equation used to modify them.
  • Constructor Details

    • ModifiedEffect

      public ModifiedEffect(EffectManager effectManager)
  • 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
    • onDone

      public void onDone()
      Description copied from class: Effect
      Called when this effect is done playing (when Effect.done() is called).
      Overrides:
      onDone in class Effect
    • onRun

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

      public Effect getInnerEffect()