public static class PlayerXpEvent.XpChange extends PlayerXpEvent
PlayerEntity.giveExperiencePoints(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 |
amount |
Constructor and Description |
---|
XpChange(PlayerEntity player,
int amount) |
Modifier and Type | Method and Description |
---|---|
int |
getAmount() |
void |
setAmount(int amount) |
getPlayer
getEntityLiving
getEntity
public XpChange(PlayerEntity player, int amount)