aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/nei/GT_NEI_AssLineHandler.java
diff options
context:
space:
mode:
authorTechnus <daniel112092@gmail.com>2016-11-22 19:05:12 +0100
committerTechnus <daniel112092@gmail.com>2016-11-22 19:05:12 +0100
commit2de6e3eadb6ab57736c51ed72d1617cff11d05f1 (patch)
tree710f06dafe1415878c3a77d7e957ff64451b87c8 /src/main/java/gregtech/nei/GT_NEI_AssLineHandler.java
parent6f03cd84cdf8b00df57b620cc552efcbf87e3a61 (diff)
downloadGT5-Unofficial-2de6e3eadb6ab57736c51ed72d1617cff11d05f1.tar.gz
GT5-Unofficial-2de6e3eadb6ab57736c51ed72d1617cff11d05f1.tar.bz2
GT5-Unofficial-2de6e3eadb6ab57736c51ed72d1617cff11d05f1.zip
Stuff
Diffstat (limited to 'src/main/java/gregtech/nei/GT_NEI_AssLineHandler.java')
-rw-r--r--src/main/java/gregtech/nei/GT_NEI_AssLineHandler.java33
1 files changed, 19 insertions, 14 deletions
diff --git a/src/main/java/gregtech/nei/GT_NEI_AssLineHandler.java b/src/main/java/gregtech/nei/GT_NEI_AssLineHandler.java
index 6edda76f23..227ce05d85 100644
--- a/src/main/java/gregtech/nei/GT_NEI_AssLineHandler.java
+++ b/src/main/java/gregtech/nei/GT_NEI_AssLineHandler.java
@@ -58,7 +58,8 @@ public class GT_NEI_AssLineHandler
}
public TemplateRecipeHandler newInstance() {
- return new GT_NEI_AssLineHandler(this.mRecipeMap);
+ NEI_GT_Config.ALH=new GT_NEI_AssLineHandler(this.mRecipeMap);
+ return NEI_GT_Config.ALH;
}
public void loadCraftingRecipes(String outputId, Object... results) {
@@ -73,6 +74,10 @@ public class GT_NEI_AssLineHandler
}
}
+ public void clearRecipes(){
+ this.arecipes.clear();
+ }
+
public void loadCraftingRecipes(ItemStack aResult) {
ItemData tPrefixMaterial = GT_OreDictUnificator.getAssociation(aResult);
@@ -215,14 +220,14 @@ public class GT_NEI_AssLineHandler
public static class GT_RectHandler
implements IContainerInputHandler, IContainerTooltipHandler {
public boolean mouseClicked(GuiContainer gui, int mousex, int mousey, int button) {
- if (canHandle(gui)) {
- if (button == 0) {
- return transferRect(gui, false);
- }
- if (button == 1) {
- return transferRect(gui, true);
- }
- }
+ //if (canHandle(gui)) {
+ // if (button == 0) {
+ // return transferRect(gui, false);
+ // }
+ // if (button == 1) {
+ // return transferRect(gui, true);
+ // }
+ //}
return false;
}
@@ -236,11 +241,11 @@ public class GT_NEI_AssLineHandler
}
public List<String> handleTooltip(GuiContainer gui, int mousex, int mousey, List<String> currenttip) {
- if ((canHandle(gui)) && (currenttip.isEmpty())) {
- if (new Rectangle(138, 18, 18, 18).contains(new Point(GuiDraw.getMousePosition().x - ((GT_GUIContainer_BasicMachine) gui).getLeft() - codechicken.nei.recipe.RecipeInfo.getGuiOffset(gui)[0], GuiDraw.getMousePosition().y - ((GT_GUIContainer_BasicMachine) gui).getTop() - codechicken.nei.recipe.RecipeInfo.getGuiOffset(gui)[1]))) {
- currenttip.add("Recipes");
- }
- }
+ //if ((canHandle(gui)) && (currenttip.isEmpty())) {
+ // if (new Rectangle(138, 18, 18, 18).contains(new Point(GuiDraw.getMousePosition().x - ((GT_GUIContainer_BasicMachine) gui).getLeft() - codechicken.nei.recipe.RecipeInfo.getGuiOffset(gui)[0], GuiDraw.getMousePosition().y - ((GT_GUIContainer_BasicMachine) gui).getTop() - codechicken.nei.recipe.RecipeInfo.getGuiOffset(gui)[1]))) {
+ // currenttip.add("Recipes");
+ // }
+ //}
return currenttip;
}