blob: ef2ba880eb32eded82a94af18dddc7d73a692339 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package gregtech.nei;
import java.util.List;
import java.util.function.Function;
/**
* Getter for description for {@link gregtech.api.util.GT_Recipe#mSpecialValue} etc. that will be drawn on NEI.
*/
@FunctionalInterface
public interface INEISpecialInfoFormatter {
/**
* @param recipeInfo Recipe info to draw description. You can retrieve special value with
* {@code recipeInfo.recipe.mSpecialValue}.
* @param applyPrefixAndSuffix Function to apply
* {@link gregtech.api.util.GT_Recipe.GT_Recipe_Map#formatSpecialValue}.
* @return List of strings containing info for special value etc.
*/
@SuppressWarnings("JavadocReference")
List<String> format(NEIRecipeInfo recipeInfo, Function<Integer, String> applyPrefixAndSuffix);
}
|