use of am2.particles.ParticleLiveForBuffDuration in project ArsMagica2 by Mithion.
the class BuffList method addParticleToBuff.
public static boolean addParticleToBuff(AMParticle particle, EntityLiving ent, int priority, boolean exclusive, int buffID) {
if (particlesForBuffID.get(buffID) >= maxParticlesPerBuff) {
return false;
}
int count = particlesForBuffID.get(buffID);
count++;
particlesForBuffID.put(buffID, count);
particle.AddParticleController(new ParticleLiveForBuffDuration(particle, ent, buffID, priority, exclusive));
return true;
}
Aggregations