Interface BoltParticleOptions.FadeFunction

Enclosing class:
BoltParticleOptions

public static interface BoltParticleOptions.FadeFunction
A bolt's fade function allows one to define lower and upper bounds on the bolt segments rendered based on lifespan. This allows for dynamic 'fade-in' and 'fade-out' effects.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    No fade; render the bolts entirely throughout their lifespan.
  • Method Summary

    Modifier and Type
    Method
    Description
    fade(float fade)
    Render bolts with a segment-by-segment 'fade' in and out, with a specified fade duration (applied to start and finish).
    org.apache.commons.lang3.tuple.Pair<Integer,Integer>
    getRenderBounds(int totalBolts, float lifeScale)
     
  • Field Details

  • Method Details

    • fade

      static BoltParticleOptions.FadeFunction fade(float fade)
      Render bolts with a segment-by-segment 'fade' in and out, with a specified fade duration (applied to start and finish).
    • getRenderBounds

      org.apache.commons.lang3.tuple.Pair<Integer,Integer> getRenderBounds(int totalBolts, float lifeScale)