pub fn player_pos_to_block_pos(position: Vec3) -> BlockPos
Expand description
Convert a player position to a block position, used internally in the pathfinder.
This is almost the same as BlockPos::from(position)
, except that non-full
blocks are handled correctly.