blob: f5c17a11638dd5167902e094d58a39217ab0d7a3 (
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
|
package gregtech.nei.formatter;
import java.util.Collections;
import java.util.List;
import javax.annotation.ParametersAreNonnullByDefault;
import net.minecraft.util.StatCollector;
import gregtech.api.enums.HeatingCoilLevel;
import gregtech.api.util.GT_Utility;
import gregtech.api.util.MethodsReturnNonnullByDefault;
import gregtech.nei.RecipeDisplayInfo;
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
public class HeatingCoilSpecialValueFormatter implements INEISpecialInfoFormatter {
public static final HeatingCoilSpecialValueFormatter INSTANCE = new HeatingCoilSpecialValueFormatter();
@Override
public List<String> format(RecipeDisplayInfo recipeInfo) {
int heat = recipeInfo.recipe.mSpecialValue;
return Collections.singletonList(
StatCollector.translateToLocalFormatted(
"GT5U.nei.heat_capacity",
GT_Utility.formatNumbers(heat),
HeatingCoilLevel.getDisplayNameFromHeat(heat, false)));
}
}
|