public class CraftingManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static RegistryNamespaced<ResourceLocation,IRecipe> |
REGISTRY |
Constructor and Description |
---|
CraftingManager() |
Modifier and Type | Method and Description |
---|---|
static IRecipe |
findMatchingRecipe(InventoryCrafting craftMatrix,
World worldIn) |
static ItemStack |
findMatchingResult(InventoryCrafting craftMatrix,
World worldIn) |
static int |
getIDForRecipe(IRecipe recipe)
Deprecated.
|
static IRecipe |
getRecipe(ResourceLocation name) |
static IRecipe |
getRecipeById(int id)
Deprecated.
|
static NonNullList<ItemStack> |
getRemainingItems(InventoryCrafting craftMatrix,
World worldIn) |
static boolean |
init() |
public static final RegistryNamespaced<ResourceLocation,IRecipe> REGISTRY
public static boolean init()
public static ItemStack findMatchingResult(InventoryCrafting craftMatrix, World worldIn)
@Nullable public static IRecipe findMatchingRecipe(InventoryCrafting craftMatrix, World worldIn)
public static NonNullList<ItemStack> getRemainingItems(InventoryCrafting craftMatrix, World worldIn)
@Nullable public static IRecipe getRecipe(ResourceLocation name)
@Deprecated public static int getIDForRecipe(IRecipe recipe)
@Deprecated @Nullable public static IRecipe getRecipeById(int id)