Package net.mcft.copy.betterstorage.api.crafting

Examples of net.mcft.copy.betterstorage.api.crafting.RecipeBounds


        for (IRecipeInput[] inputArray : sampleInput) {
          ItemStack[] stackArray = new ItemStack[inputArray.length];
          for (int i = 0; i < inputArray.length; i++)
            if (inputArray[i] != null)
              stackArray[i] = inputArray[i].getPossibleMatches().get(0);
          for (ItemStack stack : recipe.checkMatch(stackArray, new RecipeBounds(stackArray)).getOutput())
            if (stack != null)
              possibleOutputs.add(stack);
        }
      }
     
View Full Code Here


          List<ItemStack> possibleMatches = input.getPossibleMatches();
          ingridients.add(new PositionedStack(possibleMatches, x * 18 + 12, y * 18 + 6));
          stackArray[index] = possibleMatches.get(0);
        }
     
      StationCrafting crafting = recipe.checkMatch(stackArray, new RecipeBounds(stackArray));
      if (crafting == null)
        throw new Error("Recipe " + recipe.getClass().getSimpleName() + " didn't match sample input.");
      requiredExperience = crafting.getRequiredExperience();
      craftingTime = crafting.getCraftingTime();
     
View Full Code Here

TOP

Related Classes of net.mcft.copy.betterstorage.api.crafting.RecipeBounds

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.