Search in sources :

Example 1 with FXEnderPortalPartical

use of com.builtbroken.mc.lib.render.fx.FXEnderPortalPartical in project ICBM-Classic by BuiltBrokenModding.

the class ClientProxy method spawnParticle.

@Override
public void spawnParticle(String name, World world, IPos3D position, double motionX, double motionY, double motionZ, float red, float green, float blue, float scale, double distance) {
    EntityFX fx = null;
    if (name.equals("smoke")) {
        fx = new FXSmoke(world, new Pos(position), red, green, blue, scale, distance);
    } else if (name.equals("missile_smoke")) {
        fx = (new FXSmoke(world, new Pos(position), red, green, blue, scale, distance)).setAge(100);
    } else if (name.equals("portal")) {
        fx = new FXEnderPortalPartical(world, new Pos(position), red, green, blue, scale, distance);
    } else if (name.equals("antimatter")) {
        fx = new FXAntimatterPartical(world, new Pos(position), red, green, blue, scale, distance);
    } else if (name.equals("digging")) {
        fx = new EntityDiggingFX(world, position.x(), position.y(), position.z(), motionX, motionY, motionZ, Block.getBlockById((int) red), 0, (int) green);
        fx.multipleParticleScaleBy(blue);
    } else if (name.equals("shockwave")) {
    //fx = new FXShockWave(world, new Pos(position), red, green, blue, scale, distance);
    }
    if (fx != null) {
        fx.motionX = motionX;
        fx.motionY = motionY;
        fx.motionZ = motionZ;
        FMLClientHandler.instance().getClient().effectRenderer.addEffect(fx);
    }
}
Also used : EntityDiggingFX(net.minecraft.client.particle.EntityDiggingFX) FXAntimatterPartical(icbm.classic.client.fx.FXAntimatterPartical) Pos(com.builtbroken.mc.imp.transform.vector.Pos) EntityFX(net.minecraft.client.particle.EntityFX) FXEnderPortalPartical(com.builtbroken.mc.lib.render.fx.FXEnderPortalPartical) FXSmoke(com.builtbroken.mc.lib.render.fx.FXSmoke)

Aggregations

Pos (com.builtbroken.mc.imp.transform.vector.Pos)1 FXEnderPortalPartical (com.builtbroken.mc.lib.render.fx.FXEnderPortalPartical)1 FXSmoke (com.builtbroken.mc.lib.render.fx.FXSmoke)1 FXAntimatterPartical (icbm.classic.client.fx.FXAntimatterPartical)1 EntityDiggingFX (net.minecraft.client.particle.EntityDiggingFX)1 EntityFX (net.minecraft.client.particle.EntityFX)1