getLookBlock

public static Location getLookBlock(Player player)

Get the block a player is looking at. Max distance is 2 blocks and min distance is 0 blocks.

Return

The block the player is looking at

Parameters

player

The player