public ParticleFireJet(final int strength, final World world, final double x, final double y, final double z) { super(strength, world, x, y, z); this.isLava = RANDOM.nextInt(3) == 0; this.particleId = this.isLava ? EnumParticleTypes.LAVA.getParticleID() : EnumParticleTypes.FLAME.getParticleID(); if (this.isLava) this.factory = new ParticleLava.Factory(); else this.factory = new ParticleFlame.Factory(); }
@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); }