double function ( ) { BlockPos loc0 = getNextBlock ( 1 ) ; if ( loc0 == null ) { return 9999 ; } else { return Math . sqrt ( mob . getDistanceSqToCenter ( loc0 ) ) ; } }
returns distance to closest block . if none is found , returns 9999 . concode_field_sep EntityMobWithInventory mob concode_elem_sep World world concode_elem_sep int itemQuantity concode_elem_sep Item itemDropped concode_elem_sep int range concode_elem_sep BlockPos nextBlock concode_field_sep boolean reachedBlock concode_elem_sep void storeItemDroppedDetails concode_elem_sep boolean isCorrectBlock concode_elem_sep void obtainItems concode_elem_sep void moveToBlock concode_elem_sep void setCurrentItem concode_elem_sep void nextStep concode_elem_sep BlockPos getNextBlock