Class PlayerTickEvent
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
net.neoforged.neoforge.event.tick.PlayerTickEvent
- Direct Known Subclasses:
PlayerTickEvent.Post
,PlayerTickEvent.Pre
Base class of the two player tick events.
These events are separate from
due to the semantics of player ticks.
On the client, players tick from the usual invalid reference
LivingTickEvent
Entity.tick()
method, but on the server, they rely
on ServerPlayer.doTick()
which is called from ServerGamePacketListenerImpl.tick()
.
Use of these events should only be necessary if you rely on this specific timing.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
PlayerTickEvent.Post
is fired once per game tick, per player, after the player performs work for the current tick.static class
PlayerTickEvent.Pre
is fired once per game tick, per player, before the player performs work for the current tick.Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.player.PlayerEvent
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
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size
-
Constructor Summary
-
Method Summary
Methods inherited from class net.neoforged.neoforge.event.entity.player.PlayerEvent
getEntity
-
Constructor Details
-
PlayerTickEvent
-