org.bukkit.event.player
Class PlayerExpChangeEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.player.PlayerEvent
          extended by org.bukkit.event.player.PlayerExpChangeEvent

public class PlayerExpChangeEvent
extends PlayerEvent

Called when a players experience changes naturally


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
 
Field Summary
 
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
 
Constructor Summary
PlayerExpChangeEvent(Player player, int expAmount)
           
 
Method Summary
 int getAmount()
          Get the amount of experience the player will receive
static HandlerList getHandlerList()
           
 HandlerList getHandlers()
           
 void setAmount(int amount)
          Set the amount of experience the player will receive
 
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
 
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerExpChangeEvent

public PlayerExpChangeEvent(Player player,
                            int expAmount)
Method Detail

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

public HandlerList getHandlers()
Specified by:
getHandlers in class Event

getHandlerList

public static HandlerList getHandlerList()


Copyright © 2013. All Rights Reserved.