blob: d365434c3fc089340d716be7cd7a2c75f673590d (
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
|
package goodgenerator.crossmod.nei;
import codechicken.nei.recipe.GuiCraftingRecipe;
import codechicken.nei.recipe.GuiUsageRecipe;
import codechicken.nei.recipe.TemplateRecipeHandler;
import cpw.mods.fml.common.event.FMLInterModComms;
import gregtech.api.enums.GT_Values;
import gregtech.api.util.GT_Recipe;
import gregtech.nei.GT_NEI_DefaultHandler;
import java.awt.*;
public class ComponentAssemblyLineHandler extends GT_NEI_DefaultHandler {
public ComponentAssemblyLineHandler(GT_Recipe.GT_Recipe_Map aRecipeMap) {
super(aRecipeMap);
this.transferRects.remove(new RecipeTransferRect(new Rectangle(65, 13, 36, 18), getOverlayIdentifier()));
this.transferRects.add(new RecipeTransferRect(new Rectangle(69, 18, 9, 34), getOverlayIdentifier()));
if (!NEI_Config.isAdded) {
FMLInterModComms.sendRuntimeMessage(
GT_Values.GT,
"NEIPlugins",
"register-crafting-handler",
"gregtech@" + this.getRecipeName() + "@" + this.getOverlayIdentifier());
GuiCraftingRecipe.craftinghandlers.add(this);
GuiUsageRecipe.usagehandlers.add(this);
}
}
@Override
public TemplateRecipeHandler newInstance() {
return new ComponentAssemblyLineHandler(this.mRecipeMap);
}
@Override
protected String getSpecialInfo(int specialValue) {
return this.mRecipeMap.mNEISpecialValuePre + GT_Values.VN[specialValue];
}
}
|