Readded User#spawnParticle(Particle, Particle.DustOptions, int, int, int)

This commit is contained in:
Florian CUNY 2018-10-20 10:37:31 +02:00
parent 7248fb3e14
commit 85ea4af1ad

View File

@ -359,6 +359,20 @@ public class User {
}
}
/**
* Spawn particles to the player.
* They are only displayed if they are within the server's view distance.
* @param particle Particle to display.
* @param dustOptions Particle.DustOptions for the particle to display.
* Cannot be null when particle is {@link Particle#REDSTONE}.
* @param x X coordinate of the particle to display.
* @param y Y coordinate of the particle to display.
* @param z Z coordinate of the particle to display.
*/
public void spawnParticle(Particle particle, Particle.DustOptions dustOptions, int x, int y, int z) {
spawnParticle(particle, dustOptions, (double) x, (double) y, (double) z);
}
/* (non-Javadoc)
* @see java.lang.Object#hashCode()
*/