Class TickStartEvent

java.lang.Object
me.hackware.api.event.Event
me.hackware.api.event.impl.TickStartEvent

public class TickStartEvent extends Event
Fired at the start of every client tick (@At("HEAD") of Minecraft.tick()). This fires before handleKeybinds(), sendPosition(), and the ServerboundClientTickEndPacket delimiter — so packets sent in a TickStartEvent handler arrive within the same tick boundary that anti-cheats like Grim expect.

Use this instead of TickEndEvent when you need to send game-play packets (mining, placing, actions) that must be ordered before the movement packet and tick-end marker.


 @SubscribeEvent
 private void onPreTick(TickStartEvent event) { ... }
 
See Also:
  • Constructor Details

    • TickStartEvent

      public TickStartEvent()