Package net.minecraftforge.common.data
Class ForgeRecipeProvider
- java.lang.Object
-
- net.minecraft.data.RecipeProvider
-
- net.minecraftforge.common.data.ForgeRecipeProvider
-
- All Implemented Interfaces:
IDataProvider
public class ForgeRecipeProvider extends RecipeProvider
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<ResourceLocation>
excludes
private java.util.Map<Item,ITag<Item>>
replacements
-
Fields inherited from class net.minecraft.data.RecipeProvider
generator
-
Fields inherited from interface net.minecraft.data.IDataProvider
SHA1
-
-
Constructor Summary
Constructors Constructor Description ForgeRecipeProvider(DataGenerator generatorIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
buildShapelessRecipes(java.util.function.Consumer<IFinishedRecipe> consumer)
private IFinishedRecipe
enhance(IFinishedRecipe vanilla)
private IFinishedRecipe
enhance(ShapedRecipeBuilder.Result vanilla)
private IFinishedRecipe
enhance(ShapelessRecipeBuilder.Result vanilla)
private Ingredient
enhance(ResourceLocation name, Ingredient vanilla)
private void
exclude(IItemProvider item)
private <T,R>
RgetField(java.lang.Class<T> clz, T inst, int index)
private void
replace(IItemProvider item, ITag<Item> tag)
protected void
saveAdvancement(DirectoryCache cache, com.google.gson.JsonObject advancementJson, java.nio.file.Path pathIn)
-
Methods inherited from class net.minecraft.data.RecipeProvider
getName, has, has, insideOf, inventoryTrigger, run
-
-
-
-
Field Detail
-
excludes
private java.util.Set<ResourceLocation> excludes
-
-
Constructor Detail
-
ForgeRecipeProvider
public ForgeRecipeProvider(DataGenerator generatorIn)
-
-
Method Detail
-
exclude
private void exclude(IItemProvider item)
-
replace
private void replace(IItemProvider item, ITag<Item> tag)
-
buildShapelessRecipes
protected void buildShapelessRecipes(java.util.function.Consumer<IFinishedRecipe> consumer)
- Overrides:
buildShapelessRecipes
in classRecipeProvider
-
saveAdvancement
protected void saveAdvancement(DirectoryCache cache, com.google.gson.JsonObject advancementJson, java.nio.file.Path pathIn)
- Overrides:
saveAdvancement
in classRecipeProvider
-
enhance
private IFinishedRecipe enhance(IFinishedRecipe vanilla)
-
enhance
private IFinishedRecipe enhance(ShapelessRecipeBuilder.Result vanilla)
-
enhance
private IFinishedRecipe enhance(ShapedRecipeBuilder.Result vanilla)
-
enhance
private Ingredient enhance(ResourceLocation name, Ingredient vanilla)
-
getField
private <T,R> R getField(java.lang.Class<T> clz, T inst, int index)
-
-