ContagionEvent

The Contagion Event is an event called when a player's item is infected with a curse.

Description
The ContagionEvent is a class that adds six local variables: an item for which item will be cursed, the custom enchantment and level for what curse should be applied, a collection of sounds that should play on completion, and a volume and pitch float for how loud the sounds should play.

Constructor
ContagionEvent(Player who, ItemStack item, CustomEnchantment curse, int level, Collection sounds) ContagionEvent(Player who, ItemStack item, CustomEnchantment curse, int level, Collection sounds, float volume, float pitch)
 * // Player who - the player being affected
 * // ItemStack item - the item being affected
 * // CustomEnchantment curse - the curse to be applied to the item
 * // int level - the level of curse to be applied
 * // Collection sounds - the sounds to be played after completion
 * // Player who - the player being affected
 * // ItemStack item - the item being affected
 * // CustomEnchantment curse - the curse to be applied to the item
 * // int level - the level of curse to be applied
 * // Collection sounds - the sounds to be played after completion
 * // float volume - the volume of the sounds
 * // float pitch - the pitch of the sounds

Implements
None

Extends
ESPlayerEvent

ItemStack getItem
Gets the item to be cursed

CustomEnchantment getCurse
Gets the curse for the item

void setCurse(CustomEnchantment curse)
Sets the curse for the item. Will only add an enchantment if isCurse set to true

int getLevel
Gets the level of the curse

void setLevel(int level)
Sets the level of the curse to the specified value

Collection getSounds
Gets the sounds to play after the completion of the event

float getVolume
Gets the volume of the sounds

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

float getPitch
Gets the pitch of the sounds

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