public class CraftingHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CraftingHelper.ShapedPrimer |
Constructor and Description |
---|
CraftingHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
findFiles(ModContainer mod,
java.lang.String base,
java.util.function.Function<java.nio.file.Path,java.lang.Boolean> preprocessor,
java.util.function.BiFunction<java.nio.file.Path,java.nio.file.Path,java.lang.Boolean> processor)
Deprecated.
|
static boolean |
findFiles(ModContainer mod,
java.lang.String base,
java.util.function.Function<java.nio.file.Path,java.lang.Boolean> preprocessor,
java.util.function.BiFunction<java.nio.file.Path,java.nio.file.Path,java.lang.Boolean> processor,
boolean defaultUnfoundRoot)
Deprecated.
|
static boolean |
findFiles(ModContainer mod,
java.lang.String base,
java.util.function.Function<java.nio.file.Path,java.lang.Boolean> preprocessor,
java.util.function.BiFunction<java.nio.file.Path,java.nio.file.Path,java.lang.Boolean> processor,
boolean defaultUnfoundRoot,
boolean visitAllFiles) |
static java.util.function.BooleanSupplier |
getCondition(com.google.gson.JsonObject json,
JsonContext context) |
static Ingredient |
getIngredient(com.google.gson.JsonElement json,
JsonContext context) |
static Ingredient |
getIngredient(java.lang.Object obj) |
static ItemStack |
getItemStack(com.google.gson.JsonObject json,
JsonContext context) |
static ItemStack |
getItemStackBasic(com.google.gson.JsonObject json,
JsonContext context) |
static IRecipe |
getRecipe(com.google.gson.JsonObject json,
JsonContext context) |
static void |
loadRecipes(boolean revertFrozen) |
static CraftingHelper.ShapedPrimer |
parseShaped(java.lang.Object... recipe) |
static boolean |
processConditions(com.google.gson.JsonArray conditions,
JsonContext context) |
static void |
register(ResourceLocation key,
IConditionFactory factory) |
static void |
register(ResourceLocation key,
IIngredientFactory factory) |
static void |
register(ResourceLocation key,
IRecipeFactory factory) |
public static void register(ResourceLocation key, IConditionFactory factory)
public static void register(ResourceLocation key, IRecipeFactory factory)
public static void register(ResourceLocation key, IIngredientFactory factory)
public static Ingredient getIngredient(java.lang.Object obj)
@Nonnull public static Ingredient getIngredient(com.google.gson.JsonElement json, JsonContext context)
public static ItemStack getItemStack(com.google.gson.JsonObject json, JsonContext context)
public static ItemStack getItemStackBasic(com.google.gson.JsonObject json, JsonContext context)
public static CraftingHelper.ShapedPrimer parseShaped(java.lang.Object... recipe)
public static boolean processConditions(com.google.gson.JsonArray conditions, JsonContext context)
public static java.util.function.BooleanSupplier getCondition(com.google.gson.JsonObject json, JsonContext context)
public static IRecipe getRecipe(com.google.gson.JsonObject json, JsonContext context)
public static void loadRecipes(boolean revertFrozen)
@Deprecated public static boolean findFiles(ModContainer mod, java.lang.String base, java.util.function.Function<java.nio.file.Path,java.lang.Boolean> preprocessor, java.util.function.BiFunction<java.nio.file.Path,java.nio.file.Path,java.lang.Boolean> processor)
findFiles(ModContainer, String, Function, BiFunction, boolean, boolean)
instead.@Deprecated public static boolean findFiles(ModContainer mod, java.lang.String base, java.util.function.Function<java.nio.file.Path,java.lang.Boolean> preprocessor, java.util.function.BiFunction<java.nio.file.Path,java.nio.file.Path,java.lang.Boolean> processor, boolean defaultUnfoundRoot)
findFiles(ModContainer, String, Function, BiFunction, boolean, boolean)
instead.public static boolean findFiles(ModContainer mod, java.lang.String base, java.util.function.Function<java.nio.file.Path,java.lang.Boolean> preprocessor, java.util.function.BiFunction<java.nio.file.Path,java.nio.file.Path,java.lang.Boolean> processor, boolean defaultUnfoundRoot, boolean visitAllFiles)