类 PlayerTickEvent

直接已知子类:
PlayerTickEvent.Post, PlayerTickEvent.Pre

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

These events are separate from

引用无效
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.

另请参阅:
  • 构造器详细资料

    • PlayerTickEvent

      protected PlayerTickEvent(Player player)