use of mods.railcraft.common.util.effects.EffectManager.IEffectSource in project Railcraft by Railcraft.
the class ClientEffectProxy method steamEffect.
@Override
public void steamEffect(World world, Object source, double yOffset) {
if (thinParticles(true))
return;
IEffectSource es = EffectManager.getEffectSource(source);
double vx = rand.nextGaussian() * 0.1;
double vy = rand.nextDouble() * 0.01;
double vz = rand.nextGaussian() * 0.1;
spawnParticle(new ParticleSteam(world, es.getPosF().addVector(0.0, yOffset, 0.0), new Vec3d(vx, vy, vz)));
}
Aggregations