LagEvent

The Lag Event is an event called when a player shoots an arrow, breaks a block, or hits a mob with an item enchanted with Curse of Lag.

Description
The LagEvent is an event that creates sounds and particle effects. It is a simple event but creates many variables to modify the event.

It adds the location of the event, the sound that will be played from the event, the volume and pitch of the sound, as well as a random assortment of particle effects.

Constructor
LagEvent(Player player, Location location, List effects) LagEvent(Player player, Location location, List effects, Sound sound) LagEvent(Player player, Location location, List effects, Sound sound, float volume, float pitch)
 * // Player player - the player who activated the event
 * // Location location - the location where the particle effects and sound will spawn
 * // List effects - a list of particle effects to spawn. The particle effects consist of a Bukkit Particle, the number of particles that should spawn, and the offset of the particles
 * // Player player - the player who activated the event
 * // Location location - the location where the particle effects and sound will spawn
 * // List effects - a list of particle effects to spawn. The particle effects consist of a Bukkit Particle, the number of particles that should spawn, and the offset of the particles
 * // Sound sound - the sound that will play when the event is called. If null, no sound will play.
 * // Player player - the player who activated the event
 * // Location location - the location where the particle effects and sound will spawn
 * // List effects - a list of particle effects to spawn. The particle effects consist of a Bukkit Particle, the number of particles that should spawn, and the offset of the particles
 * // Sound sound - the sound that will play when the event is called. If null, no sound will play.
 * // float volume - the volume of the sound
 * // float pitch - the pitch of the sound

Implements
None

Extends
ModifyActionEvent

Location getLocation
Returns the location of the event

void setLocation(Location location)
Sets the location of the event to the specified location

List getEffects
Gets the particle effects that should be created

Sound getSound
Gets the sound for the event

void setSound(Sound sound)
Sets the sound of the event to the specified value

float getVolume
Gets the volume for the event

void setVolume(float volume)
Sets the volume of the event to the specified value

float getPitch
Gets the pitch for the event

void setPitch(float pitch)
Sets the pitch of the event to the specified value