verify Click
fun BlockPlacementTarget.verifyClick(rotation: Rotation = this.rotation, range: Double = max(player.blockInteractionRange(), player.entityInteractionRange()), trace: ClickTrace = ClickTrace.WORLD, onFailure: FailedClick = FailedClick.NOTHING): BlockHitResult?
Verifies that this target can be clicked right now, i.e. that the interaction would be accepted.
The click is traced from the player's current eye, which is the eye the server uses when it processes the interaction. BlockPlacementTarget.rotation may have been aimed from a predicted position instead, so this is what decides whether the click actually happens.
Return
the hit to place with, or null if there is none
Parameters
rotation
the rotation the click is traced with
range
the maximum distance of the trace
trace
how the click is traced
on Failure
what a failed verification reports