Slind

Untitled

Jan 31st, 2014
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. private boolean isCourseTraversable(double par1, double par3, double par5, double par7)
  2. {
  3. double d4 = (this.waypointX - this.field_70165_t) / par7;
  4. double d5 = (this.waypointY - this.field_70163_u) / par7;
  5. double d6 = (this.waypointZ - this.field_70161_v) / par7;
  6. AxisAlignedBB axisalignedbb = this.field_70121_D.func_72329_c();
  7.  
  8. for (int i = 1; i < par7; i++)
  9. {
  10. axisalignedbb.func_72317_d(d4, d5, d6);
  11.  
  12. if (!this.field_70170_p.func_72945_a(this, axisalignedbb).isEmpty())
  13. {
  14. return false;
  15. }
  16. }
  17.  
  18. return true;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment