Search in sources :

Example 1 with ParticleFlame

use of net.minecraft.client.particle.ParticleFlame in project DynamicSurroundings by OreCruncher.

the class ParticleFireJet method spawnJetParticle.

@Override
protected void spawnJetParticle() {
    final double speedY = this.isLava ? 0 : this.jetStrength / 10.0D;
    final Particle particle = this.factory.createParticle(this.particleId, this.world, this.posX, this.posY, this.posZ, 0D, speedY, 0D);
    if (!this.isLava) {
        final ParticleFlame flame = (ParticleFlame) particle;
        flame.flameScale *= this.jetStrength;
    }
    addParticle(particle);
}
Also used : Particle(net.minecraft.client.particle.Particle) ParticleFlame(net.minecraft.client.particle.ParticleFlame)

Aggregations

Particle (net.minecraft.client.particle.Particle)1 ParticleFlame (net.minecraft.client.particle.ParticleFlame)1