mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-04-13 09:41:09 +00:00
Add commodore for particle
This commit is contained in:
parent
9c64758494
commit
be9826c6e7
2 changed files with 84 additions and 0 deletions
|
@ -2708,6 +2708,48 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
|
|||
*/
|
||||
public <T> void spawnParticle(@NotNull Particle.Typed<T> particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable 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 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 force whether to send the particle to players within an extended
|
||||
* range and encourage their client to render it regardless of
|
||||
* settings
|
||||
*/
|
||||
public void spawnParticle(@NotNull Particle particle, @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, 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 force whether to send the particle to players within an extended
|
||||
* range and encourage their client to render it regardless of
|
||||
* settings
|
||||
*/
|
||||
public void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, boolean force);
|
||||
|
||||
/**
|
||||
* Find the closest nearby structure of a given {@link StructureType}.
|
||||
* Finding unexplored structures can, and will, block if the world is
|
||||
|
|
|
@ -2134,6 +2134,48 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|||
*/
|
||||
public <T> void spawnParticle(@NotNull Particle.Typed<T> particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable 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 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 force whether to send the particle to the player in an extended
|
||||
* range and encourage their client to render it regardless of
|
||||
* settings
|
||||
*/
|
||||
public void spawnParticle(@NotNull Particle particle, @NotNull Location location, int count, double offsetX, double offsetY, double offsetZ, double extra, 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 force whether to send the particle to the player in an extended
|
||||
* range and encourage their client to render it regardless of
|
||||
* settings
|
||||
*/
|
||||
public void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, boolean force);
|
||||
|
||||
/**
|
||||
* Return the player's progression on the specified advancement.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue