@@ -1840,6 +1840,55 @@ public default void giveExp(int amount) {
1840
1840
*/
1841
1841
public <T > void spawnParticle (@ NotNull Particle particle , double x , double y , double z , int count , double offsetX , double offsetY , double offsetZ , double extra , @ Nullable T data );
1842
1842
1843
+ /**
1844
+ * Spawns the particle (the number of times specified by count)
1845
+ * at the target location. The position of each particle will be
1846
+ * randomized positively and negatively by the offset parameters
1847
+ * on each axis.
1848
+ *
1849
+ * @param <T> type of particle data (see {@link Particle#getDataType()}
1850
+ * @param particle the particle to spawn
1851
+ * @param location the location to spawn at
1852
+ * @param count the number of particles
1853
+ * @param offsetX the maximum random offset on the X axis
1854
+ * @param offsetY the maximum random offset on the Y axis
1855
+ * @param offsetZ the maximum random offset on the Z axis
1856
+ * @param extra the extra data for this particle, depends on the
1857
+ * particle used (normally speed)
1858
+ * @param data the data to use for the particle or null,
1859
+ * the type of this depends on {@link Particle#getDataType()}
1860
+ * @param force whether to send the particle to the player in an extended
1861
+ * range and encourage their client to render it regardless of
1862
+ * settings
1863
+ */
1864
+ public <T > void spawnParticle (@ NotNull Particle particle , @ NotNull Location location , int count , double offsetX , double offsetY , double offsetZ , double extra , @ Nullable T data , boolean force );
1865
+
1866
+ /**
1867
+ * Spawns the particle (the number of times specified by count)
1868
+ * at the target location. The position of each particle will be
1869
+ * randomized positively and negatively by the offset parameters
1870
+ * on each axis.
1871
+ *
1872
+ * @param <T> type of particle data (see {@link Particle#getDataType()}
1873
+ * @param particle the particle to spawn
1874
+ * @param x the position on the x axis to spawn at
1875
+ * @param y the position on the y axis to spawn at
1876
+ * @param z the position on the z axis to spawn at
1877
+ * @param count the number of particles
1878
+ * @param offsetX the maximum random offset on the X axis
1879
+ * @param offsetY the maximum random offset on the Y axis
1880
+ * @param offsetZ the maximum random offset on the Z axis
1881
+ * @param extra the extra data for this particle, depends on the
1882
+ * particle used (normally speed)
1883
+ * @param data the data to use for the particle or null,
1884
+ * the type of this depends on {@link Particle#getDataType()}
1885
+ * @param force whether to send the particle to the player in an extended
1886
+ * range and encourage their client to render it regardless of
1887
+ * settings
1888
+ */
1889
+ public <T > void spawnParticle (@ NotNull Particle particle , double x , double y , double z , int count , double offsetX , double offsetY , double offsetZ , double extra , @ Nullable T data , boolean force );
1890
+
1891
+
1843
1892
/**
1844
1893
* Return the player's progression on the specified advancement.
1845
1894
*
0 commit comments