onPlayerAnimation

public void onPlayerAnimation(PlayerAnimationEvent event)

Spigot/Paper can suppress LEFT_CLICK_AIR when its server-side ray hits a backing entity that the client was told to hide. The arm-swing packet is then the only surviving evidence of the click. Close the input at this event, retaining any deferred interact reservation. An animation without an observed owner gets its own captured claim rather than a later lookup that could consume a different click.