Class | Description |
---|---|
AchievementEvent |
When the player receives an achievement.
|
AnvilRepairEvent | |
ArrowLooseEvent |
ArrowLooseEvent is fired when a player stops using a bow.
This event is fired whenever a player stops using a bow in ItemBow#onPlayerStoppedUsing(ItemStack, World, EntityPlayer, int). ArrowLooseEvent.bow contains the ItemBow ItemStack that was used in this event.ArrowLooseEvent.charge contains the value for how much the player had charged before stopping the shot.This event is Cancelable .If this event is canceled, the player does not stop using the bow. This event does not have a result. |
ArrowNockEvent |
ArrowNockEvent is fired when a player begins using a bow.
This event is fired whenever a player begins using a bow in ItemBow#onItemRightClick(ItemStack, World, EntityPlayer). ArrowNockEvent.result contains the resulting ItemStack due to the use of the bow. |
AttackEntityEvent |
AttackEntityEvent is fired when a player attacks an Entity.
This event is fired whenever a player attacks an Entity in EntityPlayer#attackTargetEntityWithCurrentItem(Entity). AttackEntityEvent.target contains the Entity that was damaged by the player. |
BonemealEvent | |
EntityInteractEvent |
EntityInteractEvent is fired when a player interacts with an Entity.
This event is fired whenever a player interacts with an Entity in EntityPlayer#interactWith(Entity). EntityInteractEvent.target contains the Entity the player interacted with. |
EntityItemPickupEvent | |
FillBucketEvent | |
ItemTooltipEvent | |
PlayerDestroyItemEvent |
PlayerDestroyItemEvent is fired when a player destroys an item.
This event is fired whenever a player destroys an item in PlayerControllerMP#onPlayerRightClick(EntityPlayer, World, ItemStack, int, int, int, int, Vec3), PlayerControllerMP#sendUseItem(EntityPlayer, World, ItemStack), EntityPlayer#destroyCurrentEquippedItem(), SlotCrafting#onPickupFromSlot(EntityPlayer, ItemStack), ItemInWorldManager#tryUseItem(EntityPlayer, World, ItemStack), and ItemInWorldManager#activateBlockOrUseItem(EntityPlayer, World, ItemStack, int, int, int, int, float, float, float). PlayerDestroyItemEvent.original contains the original ItemStack before the item was destroyed. |
PlayerDropsEvent |
Child class of LivingDropEvent that is fired specifically when a
player dies.
|
PlayerEvent |
PlayerEvent is fired whenever an event involving Living entities occurs.
|
PlayerEvent.BreakSpeed |
BreakSpeed is fired when a player attempts to harvest a block.
This event is fired whenever a player attempts to harvest a block in EntityPlayer#canHarvestBlock(Block). This event is fired via the ForgeEventFactory#getBreakSpeed(EntityPlayer, IBlockState, float, BlockPos) .PlayerEvent.BreakSpeed.state contains the block being broken. |
PlayerEvent.Clone |
Fired when the EntityPlayer is cloned, typically caused by the network sending a RESPAWN_PLAYER event.
|
PlayerEvent.HarvestCheck |
HarvestCheck is fired when a player attempts to harvest a block.
This event is fired whenever a player attempts to harvest a block in EntityPlayer#canHarvestBlock(Block). This event is fired via the ForgeEventFactory#doPlayerHarvestCheck(EntityPlayer, Block, boolean) .PlayerEvent.HarvestCheck.block contains the Block that is being checked for harvesting. |
PlayerEvent.LoadFromFile |
The player is being loaded from the world save.
|
PlayerEvent.NameFormat |
NameFormat is fired when a player's display name is retrieved.
This event is fired whenever a player's name is retrieved in EntityPlayer#getDisplayName() or EntityPlayer#refreshDisplayName(). This event is fired via the ForgeEventFactory#getPlayerDisplayName(EntityPlayer, String) .PlayerEvent.NameFormat.username contains the username of the player. |
PlayerEvent.SaveToFile |
The player is being saved to the world store.
|
PlayerEvent.StartTracking |
Fired when an Entity is started to be "tracked" by this player (the player receives updates about this entity, e.g.
|
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.
|
PlayerFlyableFallEvent |
Occurs when a player falls, but is able to fly.
|
PlayerInteractEvent |
PlayerInteractEvent is fired when a player interacts in some way.
|
PlayerOpenContainerEvent | |
PlayerPickupXpEvent |
This event is called when a player collides with a EntityXPOrb on the ground.
|
PlayerSetSpawnEvent | |
PlayerSleepInBedEvent |
PlayerSleepInBedEvent is fired when a player sleeps in a bed.
|
PlayerUseItemEvent | |
PlayerUseItemEvent.Finish |
Fired after an item has fully finished being used.
|
PlayerUseItemEvent.Start |
Fired when a player starts 'using' an item, typically when they hold right mouse.
|
PlayerUseItemEvent.Stop |
Fired when a player stops using an item without the use duration timing out.
|
PlayerUseItemEvent.Tick |
Fired every tick that a player is 'using' an item, see
PlayerUseItemEvent.Start for info. |
PlayerWakeUpEvent |
This event is fired when the player is waking up.
This is merely for purposes of listening for this to happen. There is nothing that can be manipulated with this event. |
SleepingLocationCheckEvent |
This event is fired when game checks, if sleeping player should be still considered "in bed".
Failing this check will cause player to wake up. This event has a result. |
UseHoeEvent |
Enum | Description |
---|---|
PlayerInteractEvent.Action |