if (recipe.getGrowthRequirement().getSoil() != null) {
builder.add(recipe.getGrowthRequirement().getSoil().toStack());
} else {
builder.add(new ItemStack(Blocks.DIRT));
}
<BUG>if (recipe.getGrowthRequirement().getRequiredBlock() != null) {

builder.add(recipe.getGrowthRequirement().getRequiredBlock().toStack());
</BUG>
}

if (recipe.getGrowthRequirement().getSoil() != null) {
builder.add(recipe.getGrowthRequirement().getSoil().toStack());
} else {
builder.add(new ItemStack(Blocks.DIRT));
