Moved collections stuff into API since the RecipeWrapper class needs it for mods to comile.