Uses of Package
net.neoforged.neoforge.event.entity.player
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
ClassDescriptionFired when the EntityPlayer is cloned, typically caused by the impl sending a RESPAWN_PLAYER event.
-
-
ClassDescriptionThis event is fired when a player attacks an entity in
Player.attack(Entity)
.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 called when a player attempts to use bone meal on a block.This event is fired when a player collides with an
ItemEntity
on the ground.PlayerEvent is fired whenever an event involving aPlayer
occurs.Fired byinvalid reference
PlayerList#respawn(ServerPlayer, boolean)
This event is fired fromPhantomSpawner.tick(net.minecraft.server.level.ServerLevel, boolean, boolean)
when phantoms would attempt to be spawned, with one event fired per player. -
-
ClassDescriptionBase class used for advancement-related events.Parent class of the two events that fire when a
Player
collides with anItemEntity
.PlayerEvent is fired whenever an event involving aPlayer
occurs.PlayerInteractEvent is fired when a player interacts in some way.Controls if the spawn attempt for the group of phantoms will occur.PlayerXpEvent is fired whenever an event involving player experience occurs. -
-
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)
. -
ClassDescriptionThis 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.This event is fired from
PhantomSpawner.tick(net.minecraft.server.level.ServerLevel, boolean, boolean)
when phantoms would attempt to be spawned, with one event fired per player.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.