mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-12 00:07:57 +00:00
Commit 4
This commit is contained in:
1 parent
ccd9a73ece
commit
d88df32fdd
3 files changed
+8
-2
No files matched your search
@@ -6,6 +6,9 @@
|
||||
/README.txt
|
||||
/CREDITS-fml.txt
|
||||
/forge-1.7.2*
|
||||
/logs/*
|
||||
/config/*
|
||||
/configs/*
|
||||
|
||||
/bin/*
|
||||
|
||||
|
||||
@@ -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)));
|
||||
}
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user