public class PlayerEvent extends LivingEvent
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  | PlayerEvent.BreakSpeedBreakSpeed is fired when a player attempts to harvest a block. | 
| static class  | PlayerEvent.CloneFired when the EntityPlayer is cloned, typically caused by the network sending a RESPAWN_PLAYER event. | 
| static class  | PlayerEvent.HarvestCheckHarvestCheck is fired when a player attempts to harvest a block. | 
| static class  | PlayerEvent.LoadFromFileThe player is being loaded from the world save. | 
| static class  | PlayerEvent.NameFormatNameFormat is fired when a player's display name is retrieved. | 
| static class  | PlayerEvent.SaveToFileThe player is being saved to the world store. | 
| static class  | PlayerEvent.StartTrackingFired when an Entity is started to be "tracked" by this player (the player receives updates about this entity, e.g. motion). | 
| static class  | PlayerEvent.StopTrackingFired when an Entity is stopped to be "tracked" by this player (the player no longer receives updates about this entity, e.g. motion). | 
| static class  | PlayerEvent.VisibilityFired when the world checks if a player is near enough to be attacked by an entity. | 
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.HasResult, Event.Result| Constructor and Description | 
|---|
| PlayerEvent(EntityPlayer player) | 
| Modifier and Type | Method and Description | 
|---|---|
| EntityPlayer | getEntityPlayer() | 
getEntityLivinggetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic PlayerEvent(EntityPlayer player)
public EntityPlayer getEntityPlayer()