This commit is contained in:
Yulife 2015-09-26 11:27:19 +02:00
parent ccd9a73ece
commit d88df32fdd
3 changed files with 8 additions and 2 deletions

3
.gitignore vendored
View file

@ -6,6 +6,9 @@
/README.txt
/CREDITS-fml.txt
/forge-1.7.2*
/logs/*
/config/*
/configs/*
/bin/*

View file

@ -38,12 +38,15 @@ public class Centrifuge {
* @param output List of items to produce with associated chance
* @param timePerItem time per item to process
* @param ingredient item input
* @param output List of percentages to produce a item (same order as in item list)
*/
@ZenMethod
public static void addRecipe(WeightedItemStack[] output, int timePerItem, IItemStack ingredient, @Optional int[] chances) {
Map<ItemStack, Float> products = new HashMap<ItemStack, Float>();
int i = 0;
for (WeightedItemStack product : output) {
products.put(toStack(product.getStack()), product.getChance());
products.put(toStack(product.getStack()), ((float) chances[i] / 100));
i++;
}
MineTweakerAPI.apply(new Add(new CentrifugeRecipe(timePerItem, toStack(ingredient), products)));
}

View file

@ -44,8 +44,8 @@ public class Fermenter {
* Note: the actual consumption of fluid input depends on the fermentation fuel
*
* @param fluidOutput type of fluid produced
* @param fluidInput type of fluid required in input
* @param resource organic item
* @param fluidInput type of fluid required in input
* @param fermentationValue amount of inputFluid on organic item requires
* @param fluidOutputModifier Output multiplier (this is usually a from the input fluid
*/