public class RecipeManager extends JsonReloadListener
IFutureReloadListener.IStage
Modifier and Type | Field and Description |
---|---|
private static com.google.gson.Gson |
GSON |
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.util.Map<IRecipeType<?>,java.util.Map<ResourceLocation,IRecipe<?>>> |
recipes |
private boolean |
someRecipesErrored |
Constructor and Description |
---|
RecipeManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
apply(java.util.Map<ResourceLocation,com.google.gson.JsonObject> objectIn,
IResourceManager resourceManagerIn,
IProfiler profilerIn) |
static IRecipe<?> |
deserializeRecipe(ResourceLocation recipeId,
com.google.gson.JsonObject json) |
void |
func_223389_a(java.lang.Iterable<IRecipe<?>> p_223389_1_) |
java.util.stream.Stream<ResourceLocation> |
getKeys() |
<C extends IInventory,T extends IRecipe<C>> |
getRecipe(IRecipeType<T> recipeTypeIn,
C inventoryIn,
World worldIn) |
java.util.Optional<? extends IRecipe<?>> |
getRecipe(ResourceLocation recipeId) |
<C extends IInventory,T extends IRecipe<C>> |
getRecipeNonNull(IRecipeType<T> recipeTypeIn,
C inventoryIn,
World worldIn) |
java.util.Collection<IRecipe<?>> |
getRecipes() |
private <C extends IInventory,T extends IRecipe<C>> |
getRecipes(IRecipeType<T> recipeTypeIn) |
<C extends IInventory,T extends IRecipe<C>> |
getRecipes(IRecipeType<T> recipeTypeIn,
C inventoryIn,
World worldIn) |
getPreparedPath, prepare
reload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_225594_i_
private static final com.google.gson.Gson GSON
private static final org.apache.logging.log4j.Logger LOGGER
private java.util.Map<IRecipeType<?>,java.util.Map<ResourceLocation,IRecipe<?>>> recipes
private boolean someRecipesErrored
protected void apply(java.util.Map<ResourceLocation,com.google.gson.JsonObject> objectIn, IResourceManager resourceManagerIn, IProfiler profilerIn)
apply
in class ReloadListener<java.util.Map<ResourceLocation,com.google.gson.JsonObject>>
public <C extends IInventory,T extends IRecipe<C>> java.util.Optional<T> getRecipe(IRecipeType<T> recipeTypeIn, C inventoryIn, World worldIn)
public <C extends IInventory,T extends IRecipe<C>> java.util.List<T> getRecipes(IRecipeType<T> recipeTypeIn, C inventoryIn, World worldIn)
private <C extends IInventory,T extends IRecipe<C>> java.util.Map<ResourceLocation,IRecipe<C>> getRecipes(IRecipeType<T> recipeTypeIn)
public <C extends IInventory,T extends IRecipe<C>> NonNullList<ItemStack> getRecipeNonNull(IRecipeType<T> recipeTypeIn, C inventoryIn, World worldIn)
public java.util.Optional<? extends IRecipe<?>> getRecipe(ResourceLocation recipeId)
public java.util.Collection<IRecipe<?>> getRecipes()
public java.util.stream.Stream<ResourceLocation> getKeys()
public static IRecipe<?> deserializeRecipe(ResourceLocation recipeId, com.google.gson.JsonObject json)
public void func_223389_a(java.lang.Iterable<IRecipe<?>> p_223389_1_)