Created
February 4, 2015 16:12
-
-
Save copygirl/8ef14dcca28aaec11b9a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public MTShapelessStationRecipe(IIngredient[] ingredients, ItemStack[] output, int experience, int craftingTime) { | |
super(ingredients.Select(i => new RecipeInputIngredient(i)).toArray(), output); | |
setRequiredExperience(experience); | |
setCraftingTime(craftingTime); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public MTShapelessStationRecipe(IIngredient[] ingredients, ItemStack[] output, int experience, int craftingTime) { | |
super(toRecipeInputs(ingredients), output); | |
setRequiredExperience(experience); | |
setCraftingTime(craftingTime); | |
} | |
private static IRecipeInput[] toRecipeInputs(IIngredient[] ingredients) { | |
IRecipeInput[] inputs = new IRecipeInput[ingredients.length]; | |
for (int i = 0; i < inputs.length; i++) | |
inputs[i] = new RecipeInputIngredient(ingredients[i]); | |
return inputs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment