public class PlayerExpChangeEvent extends PlayerEvent
Event.Resultplayer| Constructor and Description |
|---|
PlayerExpChangeEvent(Player player,
Entity sourceEntity,
int expAmount) |
PlayerExpChangeEvent(Player player,
int expAmount) |
| Modifier and Type | Method and 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
|
getPlayercallEvent, getEventName, isAsynchronouspublic PlayerExpChangeEvent(@NotNull
Player player,
int expAmount)
@Nullable public Entity getSource()
public int getAmount()
public void setAmount(int amount)
amount - The amount of experience to set@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2022. All rights reserved.