public class PlayerXpEvent extends PlayerEvent
Event
as its parameter, the method will
receive every child event of this class.MinecraftForge.EVENT_BUS
.Modifier and Type | Class and Description |
---|---|
static class |
PlayerXpEvent.LevelChange
This event is fired when the player's experience level changes through the
PlayerEntity.addExperienceLevel(int) method. |
static class |
PlayerXpEvent.PickupXp
This event is fired after the player collides with an experience orb, but before the player has been given the experience.
|
static class |
PlayerXpEvent.XpChange
This event is fired when the player's experience changes through the
PlayerEntity.giveExperiencePoints(int) method. |
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
Constructor and Description |
---|
PlayerXpEvent(PlayerEntity player) |
getPlayer
getEntityLiving
getEntity
public PlayerXpEvent(PlayerEntity player)