public void display(ParticleData data, Location center, Color color, double range, float offsetX, float offsetY, float offsetZ, float speed, int amount, List<Player> targetPlayers) { Material material = null; byte materialData = 0; if (data != null) { material = data.material; materialData = data.data; } display(particle, center, offsetX, offsetY, offsetZ, speed, amount, 1, color, material, materialData, range, targetPlayers); }
/** * Displays a particle effect which is only visible for the specified players * * @param offsetX Maximum distance particles can fly away from the center on the x-axis * @param offsetY Maximum distance particles can fly away from the center on the y-axis * @param offsetZ Maximum distance particles can fly away from the center on the z-axis * @param speed Display speed of the particles * @param amount Amount of particles * @param center Center location of the effect * @param players Receivers of the effect * @throws ParticleVersionException If the particle effect is not supported by the server version */ public void display(float offsetX, float offsetY, float offsetZ, float speed, int amount, Location center, List<Player> players) throws ParticleVersionException { if (!isSupported()) { throw new ParticleVersionException("The " + this + " particle effect is not supported by your server version."); } display(particle, center, offsetX, offsetY, offsetZ, speed, amount, 1, null, null, (byte)0, 0, players); }
ParticleEffect(String name) { this.name = name; try { particle = Particle.valueOf(name()); } catch (Exception ex) { particle = null; } }
/** * Displays a particle effect which is only visible for all players within a certain range in the world of @param center * * @param offsetX Maximum distance particles can fly away from the center on the x-axis * @param offsetY Maximum distance particles can fly away from the center on the y-axis * @param offsetZ Maximum distance particles can fly away from the center on the z-axis * @param speed Display speed of the particles * @param amount Amount of particles * @param center Center location of the effect * @param range Range of the visibility * @param targetPlayers if set, will send this packet to a specific list of players * @throws ParticleVersionException If the particle effect is not supported by the server version */ public void display(float offsetX, float offsetY, float offsetZ, float speed, int amount, Location center, double range, List<Player> targetPlayers) throws ParticleVersionException { if (!isSupported()) { throw new ParticleVersionException("The " + this + " particle effect is not supported by your server version."); } display(particle, center, offsetX, offsetY, offsetZ, speed, amount, 1, null, null, (byte)0, range, targetPlayers); }
/** * Displays a particle effect which requires additional data and is only visible for the specified players * * @param data Data of the effect * @param offsetX Maximum distance particles can fly away from the center on the x-axis * @param offsetY Maximum distance particles can fly away from the center on the y-axis * @param offsetZ Maximum distance particles can fly away from the center on the z-axis * @param speed Display speed of the particles * @param amount Amount of particles * @param center Center location of the effect * @param players Receivers of the effect * @throws ParticleVersionException If the particle effect is not supported by the server version */ public void display(ParticleData data, float offsetX, float offsetY, float offsetZ, float speed, int amount, Location center, List<Player> players) throws ParticleVersionException, ParticleDataException { if (!isSupported()) { throw new ParticleVersionException("The " + this + " particle effect is not supported by your server version."); } Material material = null; byte materialData = 0; if (data != null) { material = data.material; materialData = data.data; } display(particle, center, offsetX, offsetY, offsetZ, speed, amount, 1, null, material, materialData, 0, players); }
public void display(Location center, Color color, double range) { display(null, center, color, range, 0, 0, 0, 1, 0); }
/** * Displays a particle effect which requires additional data and is only visible for all players within a certain range in the world of @param center * * @param data Data of the effect * @param offsetX Maximum distance particles can fly away from the center on the x-axis * @param offsetY Maximum distance particles can fly away from the center on the y-axis * @param offsetZ Maximum distance particles can fly away from the center on the z-axis * @param speed Display speed of the particles * @param amount Amount of particles * @param center Center location of the effect * @param range Range of the visibility * @param targetPlayers if set, will send to a specific set of players * @throws ParticleVersionException If the particle effect is not supported by the server version */ public void display(ParticleData data, float offsetX, float offsetY, float offsetZ, float speed, int amount, Location center, double range, List<Player> targetPlayers) throws ParticleVersionException, ParticleDataException { if (!isSupported()) { throw new ParticleVersionException("The " + this + " particle effect is not supported by your server version."); } Material material = null; byte materialData = 0; if (data != null) { material = data.material; materialData = data.data; } display(particle, center, offsetX, offsetY, offsetZ, speed, amount, 1, null, material, materialData, range, targetPlayers); }
public void display(ParticleData data, float offsetX, float offsetY, float offsetZ, float speed, int amount, Location center, double range) throws ParticleVersionException, ParticleDataException { display(data, offsetX, offsetY, offsetZ, speed, amount, center, range, null); }
/** * Displays a single particle which flies into a determined direction and is only visible for the specified players * * @param direction Direction of the particle * @param speed Display speed of the particle * @param center Center location of the effect * @param players Receivers of the effect * @throws ParticleVersionException If the particle effect is not supported by the server version */ public void display(Vector direction, float speed, Location center, List<Player> players) throws ParticleVersionException { if (!isSupported()) { throw new ParticleVersionException("The " + this + " particle effect is not supported by your server version."); } display(particle, center, (float)direction.getX(), (float)direction.getY(), (float)direction.getZ(), speed, 1, 1, null, null, (byte)0, 0, players); }
public void display(float offsetX, float offsetY, float offsetZ, float speed, int amount, Location center, double range) throws ParticleVersionException { display(offsetX, offsetY, offsetZ, speed, amount, center, range, null); }
/** * Displays a single particle which flies into a determined direction and is only visible for all players within a certain range in the world of @param center * * @param direction Direction of the particle * @param speed Display speed of the particle * @param center Center location of the effect * @param range Range of the visibility * @throws ParticleVersionException If the particle effect is not supported by the server version */ public void display(Vector direction, float speed, Location center, double range) throws ParticleVersionException { if (!isSupported()) { throw new ParticleVersionException("The " + this + " particle effect is not supported by your server version."); } display(particle, center, (float)direction.getX(), (float)direction.getY(), (float)direction.getZ(), speed, 1, 1, null, null, (byte)0, range, null); }
public void display(ParticleData data, Location center, Color color, double range, float offsetX, float offsetY, float offsetZ, float speed, int amount) { display(data, center, color, range, offsetX, offsetY, offsetZ, speed, amount, null); }
/** * Displays a single particle which requires additional data that flies into a determined direction and is only visible for all players within a certain range in the world of @param center * * @param data Data of the effect * @param direction Direction of the particle * @param speed Display speed of the particles * @param center Center location of the effect * @param range Range of the visibility * @throws ParticleVersionException If the particle effect is not supported by the server version */ public void display(ParticleData data, Vector direction, float speed, Location center, double range) throws ParticleVersionException, ParticleDataException { if (!isSupported()) { throw new ParticleVersionException("The " + this + " particle effect is not supported by your server version."); } Material material = null; byte materialData = 0; if (data != null) { material = data.material; materialData = data.data; } display(particle, center, (float)direction.getX(), (float)direction.getY(), (float)direction.getZ(), speed, 1, 1, null, material, materialData, range, null); }
/** * Displays a single particle which flies into a determined direction and is only visible for the specified players * * @param direction Direction of the particle * @param speed Display speed of the particle * @param center Center location of the effect * @param players Receivers of the effect * @throws ParticleVersionException If the particle effect is not supported by the server version * @see #display(Vector, float, Location, List) */ public void display(Vector direction, float speed, Location center, Player... players) throws ParticleVersionException { display(direction, speed, center, Arrays.asList(players)); }
/** * Displays a single particle which requires additional data that flies into a determined direction and is only visible for the specified players * * @param data Data of the effect * @param direction Direction of the particle * @param speed Display speed of the particles * @param center Center location of the effect * @param players Receivers of the effect * @throws ParticleVersionException If the particle effect is not supported by the server version */ public void display(ParticleData data, Vector direction, float speed, Location center, List<Player> players) throws ParticleVersionException, ParticleDataException { if (!isSupported()) { throw new ParticleVersionException("The " + this + " particle effect is not supported by your server version."); } Material material = null; byte materialData = 0; if (data != null) { material = data.material; materialData = data.data; } display(particle, center, (float)direction.getX(), (float)direction.getY(), (float)direction.getZ(), speed, 1, 1, null, material, materialData, 0, players); }
/** * Displays a single particle which requires additional data that flies into a determined direction and is only visible for the specified players * * @param data Data of the effect * @param direction Direction of the particle * @param speed Display speed of the particles * @param center Center location of the effect * @param players Receivers of the effect * @throws ParticleVersionException If the particle effect is not supported by the server version */ public void display(ParticleData data, Vector direction, float speed, Location center, Player... players) throws ParticleVersionException, ParticleDataException { display(data, direction, speed, center, Arrays.asList(players)); }
/** * Displays a particle effect which is only visible for the specified players * * @param offsetX Maximum distance particles can fly away from the center on the x-axis * @param offsetY Maximum distance particles can fly away from the center on the y-axis * @param offsetZ Maximum distance particles can fly away from the center on the z-axis * @param speed Display speed of the particles * @param amount Amount of particles * @param center Center location of the effect * @param players Receivers of the effect * @throws ParticleVersionException If the particle effect is not supported by the server version * @see #display(float, float, float, float, int, Location, List) */ public void display(float offsetX, float offsetY, float offsetZ, float speed, int amount, Location center, Player... players) throws ParticleVersionException { display(offsetX, offsetY, offsetZ, speed, amount, center, Arrays.asList(players)); }
/** * Displays a particle effect which requires additional data and is only visible for the specified players * * @param data Data of the effect * @param offsetX Maximum distance particles can fly away from the center on the x-axis * @param offsetY Maximum distance particles can fly away from the center on the y-axis * @param offsetZ Maximum distance particles can fly away from the center on the z-axis * @param speed Display speed of the particles * @param amount Amount of particles * @param center Center location of the effect * @param players Receivers of the effect * @throws ParticleVersionException If the particle effect is not supported by the server version */ public void display(ParticleData data, float offsetX, float offsetY, float offsetZ, float speed, int amount, Location center, Player... players) throws ParticleVersionException, ParticleDataException { display(data, offsetX, offsetY, offsetZ, speed, amount, center, Arrays.asList(players)); }