<commit_before>/*------------------------------------------------------------------------------
 Copyright (c) CovertJaguar, 2011-2016

 This work (the API) is licensed under the "MIT" License,
 see LICENSE.md for details.
 -----------------------------------------------------------------------------*/

package mods.railcraft.api.crafting;

import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.world.World;

import javax.annotation.Nullable;
import java.util.List;

/**
 * This interface allows you to interact with the Rolling Machine Crafting Manager.
 * You can add any type of IRecipe to the recipe list directly, but it only provides helpers for vanilla recipes.
 *
 * @author CovertJaguar <http://www.railcraft.info>
 */
public interface IRollingMachineCraftingManager {

    /**
     * This function can be used to add any type of IRecipe to the table.
     */
    void addRecipe(IRecipe recipe);

    /**
     * Adds a vanilla style shaped recipe.
     *
     * @param output     the result
     * @param components the crafting matrix
     */
    void addRecipe(@Nullable ItemStack output, Object... components);

    /**
     * Adds a vanilla style shapeless recipe.
     *
     * @param output     the result
     * @param components the crafting matrix
     */
    void addShapelessRecipe(@Nullable ItemStack output, Object... components);

    /**
     * Given a specific combination of ItemStacks, this function will output the resulting crafting result.
     *
     * @param inventoryCrafting the crafting inventory
     * @param world             the world
     * @return the resulting ItemStack
     */
    ItemStack findMatchingRecipe(InventoryCrafting inventoryCrafting, World world);

    /**
     * You can add/remove recipes by modifying this list.
     * It fully supports and IRecipe, including Forge OreDict Recipes.
     *
     * @return the complete, fully modifiable, recipe list.
     */
    List<IRecipe> getRecipeList();

}<commit_msg>More Nullables<commit_after>/*------------------------------------------------------------------------------
 Copyright (c) CovertJaguar, 2011-2017

 This work (the API) is licensed under the "MIT" License,
 see LICENSE.md for details.
 -----------------------------------------------------------------------------*/

package mods.railcraft.api.crafting;

import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.world.World;

import javax.annotation.Nullable;
import java.util.List;

/**
 * This interface allows you to interact with the Rolling Machine Crafting Manager.
 * You can add any type of IRecipe to the recipe list directly, but it only provides helpers for vanilla recipes.
 *
 * @author CovertJaguar <http://www.railcraft.info>
 */
public interface IRollingMachineCraftingManager {

    /**
     * This function can be used to add any type of IRecipe to the table.
     */
    void addRecipe(IRecipe recipe);

    /**
     * Adds a vanilla style shaped recipe.
     *
     * @param output     the result
     * @param components the crafting matrix
     */
    void addRecipe(@Nullable ItemStack output, Object... components);

    /**
     * Adds a vanilla style shapeless recipe.
     *
     * @param output     the result
     * @param components the crafting matrix
     */
    void addShapelessRecipe(@Nullable ItemStack output, Object... components);

    /**
     * Given a specific combination of ItemStacks, this function will output the resulting crafting result.
     *
     * @param inventoryCrafting the crafting inventory
     * @param world             the world
     * @return the resulting ItemStack
     */
    @Nullable
    ItemStack findMatchingRecipe(InventoryCrafting inventoryCrafting, World world);

    /**
     * You can add/remove recipes by modifying this list.
     * It fully supports and IRecipe, including Forge OreDict Recipes.
     *
     * @return the complete, fully modifiable, recipe list.
     */
    List<IRecipe> getRecipeList();

}
{'fraction_non_alphanumeric': 0.15112075198843095, 'fraction_numerical': 0.003856350927934442, 'mean_word_length': 2.2702915681639086, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4229366', 'n_tokens_mistral': 1101, 'n_tokens_neox': 1059, 'n_words': 378}