Class PlayerExpChangeEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerExpChangeEvent
Called when a players experience changes naturally
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class PlayerEvent
player -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the amount of experience the player will receivestatic HandlerListvoidsetAmount(int amount) Set the amount of experience the player will receiveMethods inherited from class PlayerEvent
getPlayerMethods inherited from class Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerExpChangeEvent
-
-
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:
getHandlersin classEvent
-
getHandlerList
-