targetBlock

fun targetBlock(player: Player): Location?

The block player is looking at within 5 blocks, or null (with an error) if none.