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.The SweepAttackEvent is fired when aPlayer
attacks a target, after theCriticalHitEvent
has been fired. -
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. -