mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Pure daisy now allows variable time recipes, closes #137.
This commit is contained in:
1 parent
47001131b0
commit
18ea3e6bfb
3 files changed
+31
-13
No files matched your search
@@ -413,13 +413,24 @@ public final class BotaniaAPI {
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a Pure Daisy Recipe.
|
||||
* Registers a Pure Daisy Recipe with the default time of 150 ticks per block
|
||||
* @param input The block that works as an input for the recipe. Can be a Block or an oredict String.
|
||||
* @param outputState The blockstate to be placed upon recipe completion.
|
||||
* @return The recipe created.
|
||||
*/
|
||||
public static RecipePureDaisy registerPureDaisyRecipe(Object input, IBlockState outputState) {
|
||||
RecipePureDaisy recipe = new RecipePureDaisy(input, outputState);
|
||||
return registerPureDaisyRecipe(input, outputState, 150);
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a Pure Daisy Recipe.
|
||||
* @param input The block that works as an input for the recipe. Can be a Block or an oredict String.
|
||||
* @param outputState The blockstate to be placed upon recipe completion.
|
||||
* @param time The amount of time in ticks to complete this recipe
|
||||
* @return The recipe created.
|
||||
*/
|
||||
public static RecipePureDaisy registerPureDaisyRecipe(Object input, IBlockState outputState, int time) {
|
||||
RecipePureDaisy recipe = new RecipePureDaisy(input, outputState, time);
|
||||
pureDaisyRecipes.add(recipe);
|
||||
return recipe;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user