returns mana cost , adjusted slightly to make colored mana parts more significant . should only be used for comparison purposes ; using this method allows the sort : 2 < x 2 < 1 u < u u == ur u < x u u < x x u u concode_field_sep int xcounter concode_elem_sep HashMap<String,Integer> sunburstMap concode_elem_sep ArrayList<Object> manaPart concode_field_sep int getSunburst concode_elem_sep boolean containsPhyrexianMana concode_elem_sep boolean payMana concode_elem_sep boolean payMana concode_elem_sep void increaseColorlessMana concode_elem_sep int getXcounter concode_elem_sep ArrayList<Mana_PartPhyrexian> getUnpaidPhyrexianMana concode_elem_sep boolean addMana concode_elem_sep boolean addMana concode_elem_sep void setXcounter concode_elem_sep boolean isPaid concode_elem_sep ArrayList<Object> split concode_elem_sep void removeColorlessMana concode_elem_sep boolean isColor concode_elem_sep Mana_Part getManaPart concode_elem_sep String toString concode_elem_sep String getColorsPaid concode_elem_sep void combineManaCost concode_elem_sep int getConvertedManaCost concode_elem_sep boolean payPhyrexian concode_elem_sep boolean isNeeded concode_elem_sep boolean isNeeded
double function ( ) { double loc0 = 0 ; for ( Object loc1 : manaPart ) { loc0 += ( ( Mana_Part ) loc1 ) . getConvertedManaCost ( ) ; if ( loc1 instanceof Mana_PartColor ) { loc0 += 0.0001 ; } } loc0 += 0.00001 * getXcounter ( ) ; return loc0 ; }