Search in sources :

Example 1 with EntityCritFX

use of net.minecraft.client.particle.EntityCritFX in project ClaySoldiersMod by SanAndreasP.

the class ParticleHelper method onSpawnSldCritical.

public static void onSpawnSldCritical(float posX, float posY, float posZ) {
    for (int i = 0; i < 20; i++) {
        EntityFX crit = new EntityCritFX(Minecraft.getMinecraft().theWorld, posX, posY, posZ, (new Random()).nextDouble() - 0.5D, 0.5D, (new Random()).nextDouble() - 0.5D);
        crit.setRBGColorF(crit.getRedColorF() * 0.3F, crit.getGreenColorF() * 0.8F, crit.getBlueColorF());
        crit.nextTextureIndexX();
        Minecraft.getMinecraft().effectRenderer.addEffect(crit);
    }
}
Also used : Random(java.util.Random) EntityCritFX(net.minecraft.client.particle.EntityCritFX) EntityFX(net.minecraft.client.particle.EntityFX)

Aggregations

Random (java.util.Random)1 EntityCritFX (net.minecraft.client.particle.EntityCritFX)1 EntityFX (net.minecraft.client.particle.EntityFX)1