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

Public Member Functions

 PlayerLevelChangeEvent (final Player player, final int oldLevel, final int newLevel)
 
int getOldLevel ()
 
int getNewLevel ()
 
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 level changes

Definition at line 9 of file PlayerLevelChangeEvent.java.

Member Function Documentation

int org.bukkit.event.player.PlayerLevelChangeEvent.getNewLevel ( )

Gets the new level of the player

Returns
The new (current) level of the player

Definition at line 34 of file PlayerLevelChangeEvent.java.

34  {
35  return newLevel;
36  }
int org.bukkit.event.player.PlayerLevelChangeEvent.getOldLevel ( )

Gets the old level of the player

Returns
The old level of the player

Definition at line 25 of file PlayerLevelChangeEvent.java.

25  {
26  return oldLevel;
27  }

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