aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
authorTechnus <daniel112092@gmail.com>2019-11-01 14:38:53 +0100
committerTechnus <daniel112092@gmail.com>2019-11-01 14:38:53 +0100
commitf39d2183ed9c6a09cc1162ab9156e9241e096a6e (patch)
treef0b0d6a002978c4460292acf7ac3725d0219985b /src/main/java/com
parentef8f0075ec4fe82f8b0c79c69528891bc270d85c (diff)
downloadGT5-Unofficial-f39d2183ed9c6a09cc1162ab9156e9241e096a6e.tar.gz
GT5-Unofficial-f39d2183ed9c6a09cc1162ab9156e9241e096a6e.tar.bz2
GT5-Unofficial-f39d2183ed9c6a09cc1162ab9156e9241e096a6e.zip
fixed fix for research station research
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/github/technus/tectech/nei/TT_NEI_ResearchHandler.java441
-rw-r--r--src/main/java/com/github/technus/tectech/nei/TT_NEI_ScannerHandler.java441
-rw-r--r--src/main/java/com/github/technus/tectech/recipe/TT_recipe.java2
-rw-r--r--src/main/java/com/github/technus/tectech/recipe/TT_recipeAdder.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_research.java4
5 files changed, 20 insertions, 870 deletions
diff --git a/src/main/java/com/github/technus/tectech/nei/TT_NEI_ResearchHandler.java b/src/main/java/com/github/technus/tectech/nei/TT_NEI_ResearchHandler.java
index 74911fe67e..358d55be0e 100644
--- a/src/main/java/com/github/technus/tectech/nei/TT_NEI_ResearchHandler.java
+++ b/src/main/java/com/github/technus/tectech/nei/TT_NEI_ResearchHandler.java
@@ -37,9 +37,6 @@ import static com.github.technus.tectech.recipe.TT_recipeAdder.nullItem;
import static gregtech.api.enums.ItemList.Display_Fluid;
public class TT_NEI_ResearchHandler extends TemplateRecipeHandler {
- public static final int sOffsetX = 5;
- public static final int sOffsetY = 11;
-
static {
GuiContainerManager.addInputHandler(new GT_RectHandler());
GuiContainerManager.addTooltipHandler(new GT_RectHandler());
@@ -118,7 +115,6 @@ public class TT_NEI_ResearchHandler extends TemplateRecipeHandler {
}
}
}
- CachedDefaultRecipe tNEIRecipe;
}
@Override
@@ -153,7 +149,6 @@ public class TT_NEI_ResearchHandler extends TemplateRecipeHandler {
}
}
}
- CachedDefaultRecipe tNEIRecipe;
}
@Override
@@ -386,439 +381,17 @@ public class TT_NEI_ResearchHandler extends TemplateRecipeHandler {
mOutputs = new ArrayList<>();
mInputs = new ArrayList<>();
-
+
int tStartIndex = 0;
- //switch (mRecipeMap.mUsualInputCount) {
- //case 0:
- // break;
- //case 1:
- if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 14+9));
- }
- //tStartIndex++;
- //break;
- //case 2:
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 14));
- // }
- // tStartIndex++;
- // break;
- //case 3:
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 14));
- // }
- // tStartIndex++;
- // break;
- //case 4:
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 5));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 5));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 23));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 23));
- // }
- // tStartIndex++;
- // break;
- //case 5:
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, 5));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 5));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 5));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 23));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 23));
- // }
- // tStartIndex++;
- // break;
- //case 6:
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, 5));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 5));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 5));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, 23));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 23));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 23));
- // }
- // tStartIndex++;
- // break;
- //case 7:
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, -4));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, -4));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, -4));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, 32));
- // }
- // tStartIndex++;
- // break;
- //case 8:
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, -4));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, -4));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, -4));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, 32));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 32));
- // }
- // tStartIndex++;
- // break;
- //default:
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, -4));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, -4));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, -4));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, 32));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 32));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 32));
- // }
- // tStartIndex++;
- //}
+ if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
+ mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 14 + 9));
+ }
if (aRecipe.mSpecialItems != null) {
mInputs.add(new FixedPositionedStack(aRecipe.mSpecialItems, 120, 52));
}
- //tStartIndex = 0;
- //switch (mRecipeMap.mUsualOutputCount) {
- //case 0:
- // break;
- //case 1:
- if (aRecipe.getOutput(tStartIndex) != null) {
- mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, 14+9, aRecipe.getOutputChance(tStartIndex)));
- }
- //tStartIndex++;
- //break;
- //case 2:
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, 14, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 120, 14, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // break;
- //case 3:
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, 14, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 120, 14, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 138, 14, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // break;
- //case 4:
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, 5, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 120, 5, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, 23, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 120, 23, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // break;
- //case 5:
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, 5, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 120, 5, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 138, 5, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, 23, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 120, 23, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // break;
- //case 6:
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, 5, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 120, 5, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 138, 5, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, 23, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 120, 23, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 138, 23, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // break;
- //case 7:
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, -4, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 120, -4, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 138, -4, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, 14, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 120, 14, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 138, 14, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, 32, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // break;
- //case 8:
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, -4, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 120, -4, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 138, -4, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, 14, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 120, 14, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 138, 14, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, 32, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 120, 32, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // break;
- //default:
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, -4, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 120, -4, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 138, -4, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, 14, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 120, 14, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 138, 14, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, 32, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 120, 32, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- // if (aRecipe.getOutput(tStartIndex) != null) {
- // this.mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 138, 32, aRecipe.getOutputChance(tStartIndex)));
- // }
- // tStartIndex++;
- //}
- //if ((aRecipe.mFluidInputs.length > 0) && (aRecipe.mFluidInputs[0] != null) && (aRecipe.mFluidInputs[0].getFluid() != null)) {
- // this.mInputs.add(new FixedPositionedStack(GT_Utility.getFluidDisplayStack(aRecipe.mFluidInputs[0], true), 48, 52));
- // if ((aRecipe.mFluidInputs.length > 1) && (aRecipe.mFluidInputs[1] != null) && (aRecipe.mFluidInputs[1].getFluid() != null)) {
- // this.mInputs.add(new FixedPositionedStack(GT_Utility.getFluidDisplayStack(aRecipe.mFluidInputs[1], true), 30, 52));
- // }
- //}
- //if (aRecipe.mFluidOutputs.length > 1) {
- // if (aRecipe.mFluidOutputs[0] != null && (aRecipe.mFluidOutputs[0].getFluid() != null)) {
- // this.mOutputs.add(new FixedPositionedStack(GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[0], true), 120, 5));
- // }
- // if (aRecipe.mFluidOutputs[1] != null && (aRecipe.mFluidOutputs[1].getFluid() != null)) {
- // this.mOutputs.add(new FixedPositionedStack(GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[1], true), 138, 5));
- // }
- // if (aRecipe.mFluidOutputs.length > 2 && aRecipe.mFluidOutputs[2] != null && (aRecipe.mFluidOutputs[2].getFluid() != null)) {
- // this.mOutputs.add(new FixedPositionedStack(GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[2], true), 102, 23));
- // }
- // if (aRecipe.mFluidOutputs.length > 3 && aRecipe.mFluidOutputs[3] != null && (aRecipe.mFluidOutputs[3].getFluid() != null)) {
- // this.mOutputs.add(new FixedPositionedStack(GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[3], true), 120, 23));
- // }
- // if (aRecipe.mFluidOutputs.length > 4 && aRecipe.mFluidOutputs[4] != null && (aRecipe.mFluidOutputs[4].getFluid() != null)) {
- // this.mOutputs.add(new FixedPositionedStack(GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[4], true), 138, 23));
- // }
- //} else if ((aRecipe.mFluidOutputs.length > 0) && (aRecipe.mFluidOutputs[0] != null) && (aRecipe.mFluidOutputs[0].getFluid() != null)) {
- // this.mOutputs.add(new FixedPositionedStack(GT_Utility.getFluidDisplayStack(aRecipe.mFluidOutputs[0], true), 102, 52));
- //}
+ if (aRecipe.getOutput(tStartIndex) != null) {
+ mOutputs.add(new FixedPositionedStack(aRecipe.getOutput(tStartIndex), 102, 14 + 9, aRecipe.getOutputChance(tStartIndex)));
+ }
}
@Override
diff --git a/src/main/java/com/github/technus/tectech/nei/TT_NEI_ScannerHandler.java b/src/main/java/com/github/technus/tectech/nei/TT_NEI_ScannerHandler.java
index 4ab8d46f5c..0c7651977e 100644
--- a/src/main/java/com/github/technus/tectech/nei/TT_NEI_ScannerHandler.java
+++ b/src/main/java/com/github/technus/tectech/nei/TT_NEI_ScannerHandler.java
@@ -37,9 +37,6 @@ import static com.github.technus.tectech.recipe.TT_recipeAdder.nullItem;
import static gregtech.api.enums.ItemList.Display_Fluid;
public class TT_NEI_ScannerHandler extends TemplateRecipeHandler {
- public static final int sOffsetX = 5;
- public static final int sOffsetY = 11;
-
static {
GuiContainerManager.addInputHandler(new GT_RectHandler());
GuiContainerManager.addTooltipHandler(new GT_RectHandler());
@@ -118,7 +115,6 @@ public class TT_NEI_ScannerHandler extends TemplateRecipeHandler {
}
}
}
- CachedDefaultRecipe tNEIRecipe;
}
@Override
@@ -153,7 +149,6 @@ public class TT_NEI_ScannerHandler extends TemplateRecipeHandler {
}
}
}
- CachedDefaultRecipe tNEIRecipe;
}
@Override
@@ -386,439 +381,17 @@ public class TT_NEI_ScannerHandler extends TemplateRecipeHandler {
mOutputs = new ArrayList<>();
mInputs = new ArrayList<>();
-
+
int tStartIndex = 0;
- //switch (mRecipeMap.mUsualInputCount) {
- //case 0:
- // break;
- //case 1:
- if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 14+9));
- }
- //tStartIndex++;
- //break;
- //case 2:
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 14));
- // }
- // tStartIndex++;
- // break;
- //case 3:
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 14));
- // }
- // tStartIndex++;
- // break;
- //case 4:
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 5));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 5));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 23));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 23));
- // }
- // tStartIndex++;
- // break;
- //case 5:
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, 5));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 5));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 5));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 23));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 23));
- // }
- // tStartIndex++;
- // break;
- //case 6:
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, 5));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 5));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 5));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, 23));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 23));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 23));
- // }
- // tStartIndex++;
- // break;
- //case 7:
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, -4));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, -4));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, -4));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, 14));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, 32));
- // }
- // tStartIndex++;
- // break;
- //case 8:
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 12, -4));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 30, -4));
- // }
- // tStartIndex++;
- // if (aRecipe.getRepresentativeInput(tStartIndex) != null) {
- // this.mInputs.add(new FixedPositionedStack(aRecipe.getRepresentativeInput(tStartIndex), 48, -4));
- // }
- // tStartIndex++;
-