public class XPGainEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Constructor and Description |
---|
XPGainEvent(User user,
int xp) |
Modifier and Type | Method and Description |
---|---|
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
int |
getOrigionalXp()
Get the origional xp gained incase another plugin changed the xp value.
|
User |
getUser()
Get the @User who just gained xp.
|
int |
getXp()
Get the amount of xp gained.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setXp(int xp)
Set the xp gained.
|
public XPGainEvent(User user, int xp)
public static org.bukkit.event.HandlerList getHandlerList()
public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class org.bukkit.event.Event
public User getUser()
public int getXp()
public int getOrigionalXp()
public void setXp(int xp)
xp
- public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable