Class EffectInstance

java.lang.Object
com.sucy.skill.api.particle.EffectInstance

public class EffectInstance extends Object
An instanced particle effect
  • Constructor Details

    • EffectInstance

      public EffectInstance(ParticleEffect effect, EffectTarget target, int level)
      Parameters:
      effect - the effect to play
      target - target to play an effect for
      level - the level of the effect
  • Method Details

    • isValid

      public boolean isValid()
      Returns:
      true if the target is still valid
    • extend

      public void extend(int duration)
      Extends the effect duration
      Parameters:
      duration - effect duration
    • tick

      public void tick()
      Ticks the effect