@Override @Nonnull protected ItemStack getOutput(Random random) { // array does not exist? return default if(outputs == null) { return super.getOutput(random); } // return a random stack from the list int i = random.nextInt(outputs.length); return outputs[i].copy(); }
public void addMerchantRecipe(IMerchant merchant, MerchantRecipeList recipeList, Random random) { ItemStack input = getInput(random); ItemStack output = getOutput(random);