Class PlayerEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.living.LivingEvent
net.neoforged.neoforge.event.entity.player.PlayerEvent
- Direct Known Subclasses:
AdvancementEvent, AnvilCraftEvent, ArrowLooseEvent, ArrowNockEvent, AttackEntityEvent, CanPlayerSleepEvent, ClientInformationUpdatedEvent, CriticalHitEvent, FluidTooltipEvent, ItemFishedEvent, ItemTooltipEvent, MovementInputUpdateEvent, PermissionsChangedEvent, PlayerBrewedPotionEvent, PlayerContainerEvent, PlayerDestroyItemEvent, PlayerEnchantItemEvent, PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.ItemCraftedEvent, PlayerEvent.ItemSmeltedEvent, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.PlayerChangedDimensionEvent, PlayerEvent.PlayerChangeGameModeEvent, PlayerEvent.PlayerLoggedInEvent, PlayerEvent.PlayerLoggedOutEvent, PlayerEvent.PlayerRespawnEvent, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.TabListNameFormat, PlayerFlyableFallEvent, PlayerHeartTypeEvent, PlayerInteractEvent, PlayerRespawnPositionEvent, PlayerSetSpawnEvent, PlayerSpawnPhantomsEvent, PlayerTickEvent, PlayerWakeUpEvent, PlayerXpEvent, StatAwardEvent, SweepAttackEvent, TradeWithVillagerEvent
Base class of the events specific to Players.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBreakSpeed is fired when a player attempts to harvest a block.static classFired when the player is cloned, typically caused by the impl sending a RESPAWN_PLAYER event.static classHarvestCheck is fired when a player attempts to harvest a block.static classstatic classFired when a player takes the resultant ItemStack from a furnace-like block.static classThe player is being loaded from the world save.static classNameFormat is fired when a player's display name is retrieved.static classFired when the player is teleported to a new dimension viaServerPlayer.teleport(TeleportTransition)static classFired when the game type of a server player is changed to a different value than what it was previously.static classFired when the player is placed into the server viaPlayerList.placeNewPlayer(Connection, ServerPlayer, CommonListenerCookie)static classFired when the player is removed from the server viaPlayerList.remove(ServerPlayer)static classFired when the player is respawned viaafter creating and initializing the newinvalid reference
PlayerList#respawn(ServerPlayer, boolean)ServerPlayer.static classThe player is being saved to the world store.static classFired when an Entity is started to be "tracked" by this player (the player receives updates about this entity, e.g. motion).static classFired when an Entity is stopped to be "tracked" by this player (the player no longer receives updates about this entity, e.g. motion).static classTabListNameFormat is fired when a player's display name for the tablist is retrieved.Nested classes/interfaces inherited from class LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingVisibilityEventNested classes/interfaces inherited from class EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
player
-
-
Constructor Details
-
PlayerEvent
-
-
Method Details
-
getEntity
- Overrides:
getEntityin classLivingEvent
-