Package me.hackware.api.event.impl
Class TickStartEvent
java.lang.Object
me.hackware.api.event.Event
me.hackware.api.event.impl.TickStartEvent
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 Summary
Constructors -
Method Summary
Methods inherited from class me.hackware.api.event.Event
cancel, isCancelled
-
Constructor Details
-
TickStartEvent
public TickStartEvent()
-