Uses of Package
net.minecraftforge.event.entity.player
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
-
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.
-
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
Item.use(Level, Player, InteractionHand)
. -
ClassDescriptionFired when the player earns an advancement.Fired when the player's progress on an advancement criterion is granted or revoked.This event will fire when the player is opped or deopped.NameFormat is fired when a player's display name is retrieved.
This event is fired whenever a player's name is retrieved inPlayer.getDisplayName()
orPlayer.refreshDisplayName()
.
This event is fired via theForgeEventFactory.getPlayerDisplayName(Player, Component)
.
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.This event is fired on the server when a connection has started the Forge handshake, Forge will wait for all enqueued work to be completed before proceeding further with the login process.PlayerXpEvent is fired whenever an event involving player experience occurs.This event is fired when the player's experience level changes through thePlayer.giveExperienceLevels(int)
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 thePlayer.giveExperiencePoints(int)
method.Fired when a player trades with anAbstractVillager
. -
ClassDescriptionPlayerInteractEvent is fired when a player interacts in some way.
-
ClassDescriptionThis event is fired on both sides whenever the player right clicks while targeting a block.
-
ClassDescriptionThis event is fired on both sides whenever the player right clicks while targeting a block.
-
-
-
ClassDescriptionBase class used for advancement-related events.PlayerEvent is fired whenever an event involving a
Player
occurs.PlayerInteractEvent is fired when a player interacts in some way.PlayerXpEvent is fired whenever an event involving player experience occurs.