diff options
author | md_5 <git@md-5.net> | 2018-08-26 18:25:47 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-08-26 18:25:47 +1000 |
commit | e0fc657261b5dd0530826e7900caf1b8c4a9586e (patch) | |
tree | f90d8d741137c424e8ee4398ead7e7c7556ccf88 /src | |
parent | efeeab2fbab5d1877ff93e57fe3bf6bbe616bc7b (diff) | |
download | bukkit-e0fc657261b5dd0530826e7900caf1b8c4a9586e.tar bukkit-e0fc657261b5dd0530826e7900caf1b8c4a9586e.tar.gz bukkit-e0fc657261b5dd0530826e7900caf1b8c4a9586e.tar.lz bukkit-e0fc657261b5dd0530826e7900caf1b8c4a9586e.tar.xz bukkit-e0fc657261b5dd0530826e7900caf1b8c4a9586e.zip |
SPIGOT-4309: Add "forced" display of particles
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/World.java | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java index 2237039b..9ce8ecbc 100644 --- a/src/main/java/org/bukkit/World.java +++ b/src/main/java/org/bukkit/World.java @@ -1476,6 +1476,52 @@ public interface World extends PluginMessageRecipient, Metadatable { */ public <T> void spawnParticle(Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, T data); + /** + * Spawns the particle (the number of times specified by count) + * at the target location. The position of each particle will be + * randomized positively and negatively by the offset parameters + * on each axis. + * + * @param particle the particle to spawn + * @param location the location to spawn at + * @param count the number of particles + * @param offsetX the maximum random offset on the X axis + * @param offsetY the maximum random offset on the Y axis + * @param offsetZ the maximum random offset on the Z axis + * @param extra the extra data for this particle, depends on the + * particle used (normally speed) + * @param data the data to use for the particle or null, + * the type of this depends on {@link Particle#getDataType()} + * @param force whether to send the particle to players within an extended + * range and encourage their client to render it regardless of + * settings + */ + public <T> void spawnParticle(Particle particle, Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, T data, boolean force); + + /** + * Spawns the particle (the number of times specified by count) + * at the target location. The position of each particle will be + * randomized positively and negatively by the offset parameters + * on each axis. + * + * @param particle the particle to spawn + * @param x the position on the x axis to spawn at + * @param y the position on the y axis to spawn at + * @param z the position on the z axis to spawn at + * @param count the number of particles + * @param offsetX the maximum random offset on the X axis + * @param offsetY the maximum random offset on the Y axis + * @param offsetZ the maximum random offset on the Z axis + * @param extra the extra data for this particle, depends on the + * particle used (normally speed) + * @param data the data to use for the particle or null, + * the type of this depends on {@link Particle#getDataType()} + * @param force whether to send the particle to players within an extended + * range and encourage their client to render it regardless of + * settings + */ + public <T> void spawnParticle(Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, T data, boolean force); + /** * Represents various map environment types that a world may be |