ChangeEntityExperienceEvent instead@Deprecated public interface ChangeLevelEvent extends TargetHumanoidEvent, Cancellable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ChangeLevelEvent.TargetPlayer
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLevel()
Deprecated.
Gets the new level of the human.
|
int |
getOriginalLevel()
Deprecated.
Gets the original level of the human.
|
void |
setLevel(int level)
Deprecated.
Sets the new level of the human.
|
getTargetEntitygetCause, getContext, getSourceisCancelled, setCancelledint getOriginalLevel()
int getLevel()
void setLevel(int level)
Technically, this can be set to the same level to cancel effects of the level being changed.
level - The new level to change to