public class PlayerExpChangeEvent extends PlayerEvent
Event.Resultplayer| 构造器和说明 |
|---|
PlayerExpChangeEvent(Player player,
int expAmount) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getAmount()
获得玩家将要获得的经验.
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
void |
setAmount(int amount)
设置玩家将要获得的经验.
|
getPlayergetEventName, isAsynchronouspublic PlayerExpChangeEvent(Player player, int expAmount)
public int getAmount()
原文:Get the amount of experience the player will receive
public void setAmount(int amount)
原文:Set the amount of experience the player will receive
amount - 设置的经验public HandlerList getHandlers()
getHandlers 在类中 Eventpublic static HandlerList getHandlerList()