Package org.bukkit.event.player
Class PlayerExpChangeEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerExpChangeEvent
public class PlayerExpChangeEvent extends PlayerEvent
Called when a players experience changes naturally
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PlayerExpChangeEvent(Player player, int expAmount)
-
Method Summary
Modifier and Type Method Description int
getAmount()
Get the amount of experience the player will receivestatic HandlerList
getHandlerList()
HandlerList
getHandlers()
void
setAmount(int amount)
Set the amount of experience the player will receive
-
Constructor Details
-
Method Details
-
getAmount
public int getAmount()Get the amount of experience the player will receive- Returns:
- The amount of experience
-
setAmount
public void setAmount(int amount)Set the amount of experience the player will receive- Parameters:
amount
- The amount of experience to set
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-