Class PlayerTickEvent

Direct Known Subclasses:
PlayerTickEvent.Post, PlayerTickEvent.Pre

public abstract class PlayerTickEvent extends PlayerEvent
Base class of the two player tick events.

These events are separate from

invalid reference
LivingTickEvent
due to the semantics of player ticks. On the client, players tick from the usual 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:
  • Constructor Details

    • PlayerTickEvent

      protected PlayerTickEvent(Player player)