public class CraftingManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
private static int |
nextAvailableId |
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() |
private static boolean |
parseJsonRecipes() |
private static IRecipe |
parseRecipeJson(com.google.gson.JsonObject p_193376_0_) |
private static void |
register(ResourceLocation name,
IRecipe recipe) |
private static void |
register(java.lang.String name,
IRecipe recipe) |
private static final org.apache.logging.log4j.Logger LOGGER
private static int nextAvailableId
public static final RegistryNamespaced<ResourceLocation,IRecipe> REGISTRY
public static boolean init()
private static boolean parseJsonRecipes()
private static IRecipe parseRecipeJson(com.google.gson.JsonObject p_193376_0_)
private static void register(java.lang.String name, IRecipe recipe)
private static void register(ResourceLocation name, IRecipe recipe)
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)