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