Class RenderingUtil.VanillaFX

java.lang.Object
org.boxutil.util.RenderingUtil.VanillaFX
Enclosing class:
RenderingUtil

public static final class RenderingUtil.VanillaFX extends Object
Some CombatEngineAPI like visual effects spawning method.

Recommend to use addSmoothParticle in vanilla combat engine, not addHitParticle.

About EmpArc, refer to the source of RenderingUtil.spawnEmpArcVisual(Vector2f, float, Vector2f, Vector2f, Color, Color, float, float, float) and make one for your mod.

About the return value, returns false when BoxUtil renderer invalid or can not add all particles.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    addHitParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float brightness, float durationIn, float totalDuration, Color color)
     
    static boolean
    addHitParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float brightness, float duration, Color color)
     
    static boolean
    addHitParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float brightness, Color color)
     
    static boolean
    addNebulaParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color)
     
    static boolean
    addNebulaSmokeParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color)
     
    static boolean
    addNebulaSmoothParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color)
     
    static boolean
    addNegativeNebulaParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color)
     
    static boolean
    addNegativeParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float rampUpFraction, float totalDuration, Color color)
     
    static boolean
    addNegativeSwirlyNebulaParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color)
     
    static boolean
    addSmokeParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float opacity, float duration, Color color)
     
    static boolean
    addSmoothParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float brightness, float rampUpFraction, float totalDuration, Color color)
     
    static boolean
    addSmoothParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float brightness, float duration, Color color)
     
    static boolean
    addSwirlyNebulaParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color)
     
    static boolean
    spawnDebrisLarge(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, int num, float facing, float spread, float minVel, float velRange, float maxRotation)
     
    static boolean
    spawnDebrisMedium(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, int num, float facing, float spread, float minVel, float velRange, float maxRotation)
     
    static boolean
    spawnDebrisSmall(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, int num, float facing, float spread, float minVel, float velRange, float maxRotation)
     
    static boolean
    spawnExplosion(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, Color color, float size, float maxDuration)
     

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • addHitParticle

      public static boolean addHitParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float brightness, float durationIn, float totalDuration, Color color)
      Parameters:
      durationIn - factor, not in second!
    • addHitParticle

      public static boolean addHitParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float brightness, float duration, Color color)
    • addHitParticle

      public static boolean addHitParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float brightness, Color color)
    • addSmoothParticle

      public static boolean addSmoothParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float brightness, float rampUpFraction, float totalDuration, Color color)
      Parameters:
      brightness - useless
    • addSmoothParticle

      public static boolean addSmoothParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float brightness, float duration, Color color)
      Parameters:
      brightness - useless
    • addNegativeParticle

      public static boolean addNegativeParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float rampUpFraction, float totalDuration, Color color)
    • addSmokeParticle

      public static boolean addSmokeParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float opacity, float duration, Color color)
      Parameters:
      opacity - useless
    • addNebulaParticle

      public static boolean addNebulaParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color)
    • addNegativeNebulaParticle

      public static boolean addNegativeNebulaParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color)
    • addSwirlyNebulaParticle

      public static boolean addSwirlyNebulaParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color)
    • addNegativeSwirlyNebulaParticle

      public static boolean addNegativeSwirlyNebulaParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color)
    • addNebulaSmokeParticle

      public static boolean addNebulaSmokeParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color)
    • addNebulaSmoothParticle

      public static boolean addNebulaSmoothParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color)
    • spawnExplosion

      public static boolean spawnExplosion(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, Color color, float size, float maxDuration)
    • spawnDebrisSmall

      public static boolean spawnDebrisSmall(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, int num, float facing, float spread, float minVel, float velRange, float maxRotation)
    • spawnDebrisMedium

      public static boolean spawnDebrisMedium(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, int num, float facing, float spread, float minVel, float velRange, float maxRotation)
    • spawnDebrisLarge

      public static boolean spawnDebrisLarge(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, int num, float facing, float spread, float minVel, float velRange, float maxRotation)