blob: e19ff6f2ba35bf4b124ad6a8c3153f6f3142aa48 (
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
40
41
42
43
44
45
46
47
48
49
50
|
package gregtech.nei;
import gregtech.api.util.GT_Recipe;
import gregtech.common.power.Power;
/**
* Holds info used for drawing descriptions on NEI.
*/
public class NEIRecipeInfo {
/**
* Recipe to show description.
*/
public final GT_Recipe recipe;
/**
* RecipeMap the recipe belongs to.
*/
public final GT_Recipe.GT_Recipe_Map recipeMap;
/**
* Recipe object for NEI.
*/
public final GT_NEI_DefaultHandler.CachedDefaultRecipe neiCachedRecipe;
/**
* When user looks up usage for machine, NEI will show all the recipes that the machine can process,
* taking tier of the machine into consideration.
* This object can be used to show info around overclocked EU/t and duration.
*/
public final Power power;
/**
* Current Y position for drawing description.
*/
public int yPos;
public NEIRecipeInfo(
GT_Recipe recipe,
GT_Recipe.GT_Recipe_Map recipeMap,
GT_NEI_DefaultHandler.CachedDefaultRecipe neiCachedRecipe,
Power power,
int descriptionYOffset) {
this.recipe = recipe;
this.recipeMap = recipeMap;
this.neiCachedRecipe = neiCachedRecipe;
this.power = power;
this.yPos = descriptionYOffset;
}
}
|