public class PlayerExpChangeEvent extends PlayerEvent
Event.Resultplayer| Constructor | Description | 
|---|---|
| PlayerExpChangeEvent(Player player,
                    int expAmount) | |
| PlayerExpChangeEvent(Player player,
                    Entity sourceEntity,
                    int expAmount) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| int | getAmount() | Get the amount of experience the player will receive | 
| static HandlerList | getHandlerList() | |
| HandlerList | getHandlers() | |
| Entity | getSource() | Get the source that provided the experience. | 
| void | setAmount(int amount) | Set the amount of experience the player will receive | 
callEvent, getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPlayerpublic PlayerExpChangeEvent(Player player, int expAmount)
@Nullable public Entity getSource()
public int getAmount()
public void setAmount(int amount)
amount - The amount of experience to setpublic HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.