Uses of Package
net.minecraftforge.event.entity.player
Package
Description
-
ClassDescriptionPlayerEvent is fired whenever an event involving Living entities occurs.
-
ClassDescriptionThis event is fired whenever a player attacks an Entity in EntityPlayer#attackTargetEntityWithCurrentItem(Entity).
This event is notCancelable
.
This event has a result.This event is fired when a player left clicks while targeting a block.This event is fired on both sides whenever the player right clicks while targeting a block. -
ClassDescriptionThis event is fired on both sides when the player right clicks an entity.This event is fired on both sides before the player triggers
net.minecraft.item.Item#onItemRightClick
. -
ClassDescriptionNameFormat is fired when a player's display name is retrieved.
This event is fired whenever a player's name is retrieved inEntityPlayer#getDisplayName()
orEntityPlayer#refreshDisplayName()
.
This event is fired via theForgeEventFactory#getPlayerDisplayName(EntityPlayer, String)
.
PlayerEvent.NameFormat.username
contains the username of the player.Fired when the game type of a server player is changed to a different value than what it was previously.PlayerXpEvent is fired whenever an event involving player experience occurs.This event is fired when the player's experience level changes through thePlayerEntity#addExperienceLevel
method.This event is fired after the player collides with an experience orb, but before the player has been given the experience.This event is fired when the player's experience changes through thePlayerEntity.giveExperiencePoints(int)
method. -
ClassDescriptionPlayerInteractEvent is fired when a player interacts in some way.
-
ClassDescriptionThis event is fired when a player left clicks while targeting a block.This event is fired on both sides whenever the player right clicks while targeting a block.
-
-
ClassDescriptionPlayerEvent is fired whenever an event involving Living entities occurs.
-
ClassDescriptionPlayerEvent is fired whenever an event involving Living entities occurs.PlayerInteractEvent is fired when a player interacts in some way.PlayerXpEvent is fired whenever an event involving player experience occurs.