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

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


      requiredInput[i] = new RecipeInputItemStack(StackUtils.copyStack(stack, 1), true);
    }
   
    requiredInput[bookIndex] = new RecipeInputItemStack(StackUtils.copyStack(book, 0, false));
   
    return new StationCrafting(output, requiredInput, experienceCost);
   
  }
View Full Code Here


      } else requiredInput[i] = ((numSheetsNeeded-- > 0) ? sheetUsed : sheetUnused);
     
      output[i] = outputStack;
    }
   
    return new StationCrafting(output, requiredInput, experienceCost);
   
  }
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();
     
      output.clear();
      ItemStack[] outputArray = crafting.getOutput();
      for (int x = 0; x < 3; x++)
        for (int y = 0; y < 3; y++)
          if (((x + y * 3) < outputArray.length) &&
              (outputArray[x + y * 3] != null))
            output.add(new PositionedStack(outputArray[x + y * 3], x * 18 + 102, y * 18 + 6));
View Full Code Here

TOP

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

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.