public class PlayerEvent extends LivingEvent
Event as its parameter, the method will
receive every child event of this class.MinecraftForge.EVENT_BUS.| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
PlayerEvent.BreakSpeed
BreakSpeed is fired when a player attempts to harvest a block.
|
static class |
PlayerEvent.Clone
Fired when the EntityPlayer is cloned, typically caused by the network sending a RESPAWN_PLAYER event.
|
static class |
PlayerEvent.HarvestCheck
HarvestCheck is fired when a player attempts to harvest a block.
|
static class |
PlayerEvent.ItemCraftedEvent |
static class |
PlayerEvent.ItemPickupEvent |
static class |
PlayerEvent.ItemSmeltedEvent |
static class |
PlayerEvent.LoadFromFile
The player is being loaded from the world save.
|
static class |
PlayerEvent.NameFormat
NameFormat is fired when a player's display name is retrieved.
|
static class |
PlayerEvent.PlayerChangedDimensionEvent |
static class |
PlayerEvent.PlayerLoggedInEvent |
static class |
PlayerEvent.PlayerLoggedOutEvent |
static class |
PlayerEvent.PlayerRespawnEvent |
static class |
PlayerEvent.SaveToFile
The player is being saved to the world store.
|
static class |
PlayerEvent.StartTracking
Fired when an Entity is started to be "tracked" by this player (the player receives updates about this entity, e.g. motion).
|
static class |
PlayerEvent.StopTracking
Fired 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.Visibility
Fired when the world checks if a player is near enough to be attacked by an entity.
|
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeightEvent.HasResult, Event.Result| コンストラクタと説明 |
|---|
PlayerEvent(PlayerEntity player) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
PlayerEntity |
getPlayer() |
getEntityLivinggetEntitygetListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic PlayerEvent(PlayerEntity player)
public PlayerEntity getPlayer()