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++;
- // 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/recipe/TT_recipe.java b/src/main/java/com/github/technus/tectech/recipe/TT_recipe.java
index b4dc5775d7..b0b349a268 100644
--- a/src/main/java/com/github/technus/tectech/recipe/TT_recipe.java
+++ b/src/main/java/com/github/technus/tectech/recipe/TT_recipe.java
@@ -9,6 +9,7 @@ import gregtech.api.util.GT_Recipe;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
+import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
@@ -167,6 +168,7 @@ public class TT_recipe extends GT_Recipe {
public static class GT_Recipe_MapTT extends GT_Recipe.GT_Recipe_Map {
public static GT_Recipe_MapTT sResearchableFakeRecipes =new GT_Recipe_MapTT(new HashSet<>(32), "gt.recipe.researchStation", "Research station", null, "gregtech:textures/gui/multimachines/ResearchFake", 1, 1,1,0,1,"", 1, "", true, false);//nei to false - using custom handler
public static GT_Recipe_MapTT sScannableFakeRecipes = new GT_Recipe_MapTT(new HashSet<>(32),"gt.recipe.em_scanner","EM Scanner Research", null,"gregtech:textures/gui/multimachines/ResearchFake",1,1,1,0,1,"",1,"",true,false);
+ public static ArrayList<GT_Recipe_AssemblyLine> sAssemblylineRecipes=new ArrayList<>();
public GT_Recipe_MapTT(Collection<GT_Recipe> aRecipeList, String aUnlocalizedName, String aLocalName, String aNEIName, String aNEIGUIPath, int aUsualInputCount, int aUsualOutputCount, int aMinimalInputItems, int aMinimalInputFluids, int aAmperage, String aNEISpecialValuePre, int aNEISpecialValueMultiplier, String aNEISpecialValuePost, boolean aShowVoltageAmperageInNEI, boolean aNEIAllowed) {
super(aRecipeList, aUnlocalizedName, aLocalName, aNEIName, aNEIGUIPath, aUsualInputCount, aUsualOutputCount, aMinimalInputItems, aMinimalInputFluids, aAmperage, aNEISpecialValuePre, aNEISpecialValueMultiplier, aNEISpecialValuePost, aShowVoltageAmperageInNEI, aNEIAllowed);
diff --git a/src/main/java/com/github/technus/tectech/recipe/TT_recipeAdder.java b/src/main/java/com/github/technus/tectech/recipe/TT_recipeAdder.java
index 88e57fc3ab..b08265d2c5 100644
--- a/src/main/java/com/github/technus/tectech/recipe/TT_recipeAdder.java
+++ b/src/main/java/com/github/technus/tectech/recipe/TT_recipeAdder.java
@@ -52,6 +52,7 @@ public class TT_recipeAdder extends GT_RecipeAdder {
TT_recipe.GT_Recipe_MapTT.sResearchableFakeRecipes.addFakeRecipe(false, new ItemStack[]{aResearchItem}, new ItemStack[]{aOutput}, new ItemStack[]{ItemList.Tool_DataStick.getWithName(1L, "Writes Research result")}, null, null, totalComputationRequired, researchEUt, researchAmperage| computationRequiredPerSec<<16);
GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes.addFakeRecipe(false, aInputs, new ItemStack[]{aOutput}, new ItemStack[]{ItemList.Tool_DataStick.getWithName(1L, "Reads Research result")}, aFluidInputs, null, assDuration, assEUt, 0,true);
GT_Recipe.GT_Recipe_AssemblyLine.sAssemblylineRecipes.add(new GT_Recipe.GT_Recipe_AssemblyLine(CustomItemList.UnusedStuff.get(1), totalComputationRequired/computationRequiredPerSec, aInputs, aFluidInputs, aOutput, assDuration, assEUt));
+ TT_recipe.GT_Recipe_MapTT.sAssemblylineRecipes.add(new GT_Recipe.GT_Recipe_AssemblyLine(aResearchItem, totalComputationRequired/computationRequiredPerSec, aInputs, aFluidInputs, aOutput, assDuration, assEUt));
return true;
}
@@ -117,6 +118,7 @@ public class TT_recipeAdder extends GT_RecipeAdder {
TT_recipe.GT_Recipe_MapTT.sResearchableFakeRecipes.addFakeRecipe(false, new ItemStack[]{aResearchItem}, new ItemStack[]{aOutput}, new ItemStack[]{ItemList.Tool_DataStick.getWithName(1L, "Writes Research result")}, null, null, totalComputationRequired, researchEUt, researchAmperage| computationRequiredPerSec<<16);
GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes.addFakeRecipe(false,tInputs,new ItemStack[]{aOutput},new ItemStack[]{ItemList.Tool_DataStick.getWithName(1L, "Reads Research result")},aFluidInputs,null,assDuration,assEUt,0,tAlts,true);
GT_Recipe.GT_Recipe_AssemblyLine.sAssemblylineRecipes.add(new GT_Recipe.GT_Recipe_AssemblyLine( CustomItemList.UnusedStuff.get(1), totalComputationRequired/computationRequiredPerSec, tInputs, aFluidInputs, aOutput, assDuration, assEUt, tAlts));
+ TT_recipe.GT_Recipe_MapTT.sAssemblylineRecipes.add(new GT_Recipe.GT_Recipe_AssemblyLine( aResearchItem, totalComputationRequired/computationRequiredPerSec, tInputs, aFluidInputs, aOutput, assDuration, assEUt, tAlts));
return true;
}
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_research.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_research.java
index 53dc178ef8..c78d314c07 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_research.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/GT_MetaTileEntity_EM_research.java
@@ -273,7 +273,7 @@ public class GT_MetaTileEntity_EM_research extends GT_MetaTileEntity_MultiblockB
if (!eHolders.isEmpty() && eHolders.get(0).mInventory[0] != null) {
holdItem = eHolders.get(0).mInventory[0].copy();
if (ItemList.Tool_DataStick.isStackEqual(itemStack, false, true)) {
- for (GT_Recipe.GT_Recipe_AssemblyLine assRecipe : GT_Recipe.GT_Recipe_AssemblyLine.sAssemblylineRecipes) {
+ for (GT_Recipe.GT_Recipe_AssemblyLine assRecipe : TT_recipe.GT_Recipe_MapTT.sAssemblylineRecipes) {
if (GT_Utility.areStacksEqual(assRecipe.mResearchItem, holdItem, true)) {
tRecipe = assRecipe;
//if found
@@ -459,7 +459,7 @@ public class GT_MetaTileEntity_EM_research extends GT_MetaTileEntity_MultiblockB
tRecipe = null;
if (holdItem != null) {
if (ItemList.Tool_DataStick.isStackEqual(mInventory[1], false, true)) {
- for (GT_Recipe.GT_Recipe_AssemblyLine tRecipe : GT_Recipe.GT_Recipe_AssemblyLine.sAssemblylineRecipes) {
+ for (GT_Recipe.GT_Recipe_AssemblyLine tRecipe : TT_recipe.GT_Recipe_MapTT.sAssemblylineRecipes) {
if (GT_Utility.areStacksEqual(tRecipe.mResearchItem, holdItem, true)) {
this.tRecipe = tRecipe;
break;