use of minechem.tileentity.decomposer.DecomposerRecipe in project Minechem by iopleke.
the class MicroscopeGui method drawDecomposerRecipe.
private void drawDecomposerRecipe(ItemStack inputstack, int x, int y) {
DecomposerRecipe recipe = DecomposerRecipeHandler.instance.getRecipe(inputstack);
if (recipe != null) {
ArrayList<ItemStack> output = MinechemUtil.convertChemicalsIntoItemStacks(recipe.getOutputRaw());
if (recipe instanceof DecomposerRecipeSelect) {
drawDecomposerRecipeSelectMatrix(((DecomposerRecipeSelect) recipe).getAllPossibleRecipes(), x, y);
} else {
drawDecomposerRecipeMatrix(output, x, y);
}
drawDecomposerChance(recipe, x, y);
}
}
use of minechem.tileentity.decomposer.DecomposerRecipe in project Minechem by iopleke.
the class MicroscopeGui method drawDecomposerRecipeSelectMatrix.
private void drawDecomposerRecipeSelectMatrix(ArrayList<DecomposerRecipe> recipes, int x, int y) {
if (slideShowTimer == Constants.TICKS_PER_SECOND * 8) {
slideShowTimer = 0;
currentSlide++;
}
if (currentSlide == recipes.size()) {
currentSlide = 0;
}
slideShowTimer++;
DecomposerRecipe recipe = recipes.get(currentSlide);
ArrayList<ItemStack> output = MinechemUtil.convertChemicalsIntoItemStacks(recipe.getOutputRaw());
drawDecomposerRecipeMatrix(output, x, y);
}
Aggregations