public static class PlayerXpEvent.LevelChange extends PlayerXpEvent
PlayerEntity.addExperienceLevel(int)
method.
It can be cancelled, and no further processing will be done.PlayerXpEvent.LevelChange, PlayerXpEvent.PickupXp, PlayerXpEvent.XpChange
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.ItemCraftedEvent, PlayerEvent.ItemPickupEvent, PlayerEvent.ItemSmeltedEvent, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.PlayerChangedDimensionEvent, PlayerEvent.PlayerLoggedInEvent, PlayerEvent.PlayerLoggedOutEvent, PlayerEvent.PlayerRespawnEvent, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private int |
levels |
Constructor and Description |
---|
LevelChange(PlayerEntity player,
int levels) |
Modifier and Type | Method and Description |
---|---|
int |
getLevels() |
void |
setLevels(int levels) |
getPlayer
getEntityLiving
getEntity
public LevelChange(PlayerEntity player, int levels)