Updated API reference for recipes.
This commit is contained in:
parent
4a369d0ee7
commit
111ee7630a
60 changed files with 76 additions and 156 deletions
|
@ -51,7 +51,7 @@ public class BehaviorDispenseScrapbox extends BehaviorDefaultDispenseItem {
|
|||
@Override
|
||||
protected ItemStack dispenseStack(IBlockSource source, ItemStack stack) {
|
||||
if (dispenseScrapboxes) {
|
||||
List<IBaseRecipeType> scrapboxRecipeList = RecipeHandler.getRecipeClassFromName(Reference.scrapboxRecipe);
|
||||
List<IBaseRecipeType> scrapboxRecipeList = RecipeHandler.getRecipeClassFromName(Reference.SCRAPBOX_RECIPE);
|
||||
int random = new Random().nextInt(scrapboxRecipeList.size());
|
||||
ItemStack out = scrapboxRecipeList.get(random).getOutput(0);
|
||||
stack.splitStack(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue