blob: f0555906ebcc7c234ffba14681bf060c13f1d695 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
package gtPlusPlus.nei;
import codechicken.nei.recipe.TemplateRecipeHandler;
import gregtech.api.util.GTPP_Recipe.GTPP_Recipe_Map;
import gtPlusPlus.core.util.math.MathUtils;
public class GT_NEI_LFTR extends GT_NEI_MultiNoCell {
public GT_NEI_LFTR() {
super(GTPP_Recipe_Map.sLiquidFluorineThoriumReactorRecipes);
}
@Override
public TemplateRecipeHandler newInstance() {
return new GT_NEI_LFTR();
}
@Override
public void drawExtras(final int aRecipeIndex) {
final long tEUt = ((CachedDefaultRecipe) this.arecipes.get(aRecipeIndex)).mRecipe.mSpecialValue;
final int tDuration = ((CachedDefaultRecipe) this.arecipes.get(aRecipeIndex)).mRecipe.mDuration;
drawText(
10,
83,
"Time: " + (tDuration < 20 ? "< 1" : MathUtils.formatNumbers(0.05d * tDuration)) + " secs",
-16777216);
drawText(
10,
93,
this.mRecipeMap.mNEISpecialValuePre
+ MathUtils.formatNumbers(
(((CachedDefaultRecipe) this.arecipes.get(aRecipeIndex)).mRecipe.mSpecialValue
* this.mRecipeMap.mNEISpecialValueMultiplier))
+ this.mRecipeMap.mNEISpecialValuePost,
-16777216);
drawText(10, 103, "Dynamo: " + MathUtils.formatNumbers((long) (tDuration * tEUt)) + " EU", -16777216);
drawText(10, 113, "Total: " + MathUtils.formatNumbers((long) (tDuration * tEUt * 4)) + " EU", -16777216);
}
}
|