Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.player.PlayerExpChangeEvent Class Reference
Inheritance diagram for org.bukkit.event.player.PlayerExpChangeEvent:
org.bukkit.event.player.PlayerEvent org.bukkit.event.Event

Public Member Functions

 PlayerExpChangeEvent (final Player player, final int expAmount)
 
int getAmount ()
 
void setAmount (int amount)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.player.PlayerEvent
 PlayerEvent (final Player who)
 
final Player getPlayer ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.player.PlayerEvent
Player player
 

Detailed Description

Called when a players experience changes naturally

Definition at line 9 of file PlayerExpChangeEvent.java.

Member Function Documentation

int org.bukkit.event.player.PlayerExpChangeEvent.getAmount ( )

Get the amount of experience the player will receive

Returns
The amount of experience

Definition at line 23 of file PlayerExpChangeEvent.java.

23  {
24  return exp;
25  }
void org.bukkit.event.player.PlayerExpChangeEvent.setAmount ( int  amount)

Set the amount of experience the player will receive

Parameters
amountThe amount of experience to set

Definition at line 32 of file PlayerExpChangeEvent.java.

32  {
33  exp = amount;
34  }

The documentation for this class was generated from the following file: