MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / drawExtras

Method drawExtras

src/main/java/gregapi/NEI_RecipeMap.java:679–717  ·  view source on GitHub ↗
(int aRecipeIndex)

Source from the content-addressed store, hash-verified

677 }
678
679 @Override
680 public void drawExtras(int aRecipeIndex) {
681 long tGUt = ((CachedDefaultRecipe)arecipes.get(aRecipeIndex)).mRecipe.mEUt;
682 long tDuration = ((CachedDefaultRecipe)arecipes.get(aRecipeIndex)).mRecipe.mDuration;
683 if (tGUt == 0) {
684 if (mRecipeMap.mShowVoltageAmperageInNEI) {
685 drawText(10, 93, "Tier: unspecified", 0xFF000000);
686 }
687 } else {
688 if (tGUt > 0) {
689 drawText (10, 73, "Costs: " + UT.Code.makeString(tGUt * tDuration ) + " GU" , 0xFF000000);
690 if (mRecipeMap.mShowVoltageAmperageInNEI) {
691 if (!mRecipeMap.mCombinePower)
692 drawText(10, 83, "Usage: " + UT.Code.makeString(tGUt ) + " GU/t", 0xFF000000);
693 drawText(10, 93, "Tier: " + UT.Code.makeString(tGUt / mRecipeMap.mPower) + " GU" , 0xFF000000);
694 drawText(10,103, "Power: " + UT.Code.makeString( mRecipeMap.mPower) , 0xFF000000);
695 } else {
696 if (tGUt != 1 && !mRecipeMap.mCombinePower)
697 drawText(10, 83, "Usage: " + UT.Code.makeString(tGUt ) + " GU/t", 0xFF000000);
698 }
699 } else {
700 tGUt *= -1;
701 drawText (10, 73, "Gain: " + UT.Code.makeString(tGUt * tDuration ) + " GU" , 0xFF000000);
702 if (mRecipeMap.mShowVoltageAmperageInNEI) {
703 if (!mRecipeMap.mCombinePower)
704 drawText(10, 83, "Output: " + UT.Code.makeString(tGUt ) + " GU/t", 0xFF000000);
705 drawText(10, 93, "Tier: " + UT.Code.makeString(tGUt / mRecipeMap.mPower) + " GU" , 0xFF000000);
706 drawText(10,103, "Power: " + UT.Code.makeString( mRecipeMap.mPower) , 0xFF000000);
707 } else {
708 if (tGUt != 1 && !mRecipeMap.mCombinePower)
709 drawText(10, 83, "Output: " + UT.Code.makeString(tGUt ) + " GU/t", 0xFF000000);
710 }
711 }
712 }
713 if (tDuration > 0)
714 drawText(10,113, "Time: " + (tDuration < 1200 ? UT.Code.makeString(tDuration) + " ticks" : tDuration < 36000 ? UT.Code.makeString(tDuration/20) + " secs" : UT.Code.makeString(tDuration/1200) + " mins"), 0xFF000000);
715 if (UT.Code.stringValid(mRecipeMap.mNEISpecialValuePre) || UT.Code.stringValid(mRecipeMap.mNEISpecialValuePost))
716 drawText(10,123, mRecipeMap.mNEISpecialValuePre + UT.Code.makeString(((CachedDefaultRecipe)arecipes.get(aRecipeIndex)).mRecipe.mSpecialValue * mRecipeMap.mNEISpecialValueMultiplier) + mRecipeMap.mNEISpecialValuePost, 0xFF000000);
717 }
718}

Callers

nothing calls this directly

Calls 4

drawTextMethod · 0.95
stringValidMethod · 0.80
getMethod · 0.65
makeStringMethod · 0.45

Tested by

no test coverage detected