Package org.boxutil.util
Class RenderingUtil.VanillaFX
java.lang.Object
org.boxutil.util.RenderingUtil.VanillaFX
- Enclosing class:
- RenderingUtil
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddHitParticle(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 booleanaddHitParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float brightness, float duration, Color color) static booleanaddHitParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float brightness, Color color) static booleanaddNebulaParticle(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 booleanaddNebulaSmokeParticle(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 booleanaddNebulaSmoothParticle(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 booleanaddNegativeNebulaParticle(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 booleanaddNegativeParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float rampUpFraction, float totalDuration, Color color) static booleanaddNegativeSwirlyNebulaParticle(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 booleanaddSmokeParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float opacity, float duration, Color color) static booleanaddSmoothParticle(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 booleanaddSmoothParticle(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, float size, float brightness, float duration, Color color) static booleanaddSwirlyNebulaParticle(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 booleanspawnDebrisLarge(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 booleanspawnDebrisMedium(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 booleanspawnDebrisSmall(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 booleanspawnExplosion(boolean isCampaign, org.lwjgl.util.vector.Vector2f loc, org.lwjgl.util.vector.Vector2f vel, Color color, float size, float maxDuration)
-
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)
-