Search in sources :

Example 6 with IEffectSource

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)));
}
Also used : IEffectSource(mods.railcraft.common.util.effects.EffectManager.IEffectSource) Vec3d(net.minecraft.util.math.Vec3d)

Aggregations

IEffectSource (mods.railcraft.common.util.effects.EffectManager.IEffectSource)6 Vec3d (net.minecraft.util.math.Vec3d)4 Particle (net.minecraft.client.particle.Particle)2 ChunkPos (net.minecraft.util.math.ChunkPos)1