azalea::interact

Function pick

Source
pub fn pick(
    look_direction: &LookDirection,
    eye_position: &Vec3,
    chunks: &ChunkStorage,
    pick_range: f64,
) -> BlockHitResult
Expand description

Get the block that a player would be looking at if their eyes were at the given direction and position.

If you need to get the block the player is looking at right now, use HitResultComponent.