ExperienceEvent

The Experience Event is an event called when armor on a player is taken off, put on, or switched.

Description
The ExperienceEvent is a class that adds a couple integer fields to keep track of experience information as well as an ExpShareType to keep track of whether it came from a block or a mob.

The ExpShareType comes with two types: This keeps track of the two different ways Exp. Share works.
 * BLOCK
 * MOB

Constructor
ExperienceEvent(Player who, int level, final ExpShareType type, int oldExp, int newExp)
 * // Player who - the player creating the experience
 * // int level - the level of Exp. Share
 * // ExpShareType type - the place from which the extra experience originated
 * // int oldExp - the original experience in the event
 * // int newExp - the new experience in the event

Implements
None

Extends
ESPlayerEvent

int getOldExp
Gets the old experience of the event

int getNewExp
Gets the new experience of the event

void setNewExp(int newExp)
Sets the new experience of the event to the specified value

ExpShareType getType
Gets the type of where the experience comes from. Either BLOCK or MOB