use of icbm.classic.client.fx.FXAntimatterPartical 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);
}
}
Aggregations