public class ForgeRecipeProvider extends RecipeProvider
Modifier and Type | Field and Description |
---|---|
private java.util.Set<ResourceLocation> |
excludes |
private java.util.Map<Item,Tag<Item>> |
replacements |
generator
HASH_FUNCTION
Constructor and Description |
---|
ForgeRecipeProvider(DataGenerator generatorIn) |
Modifier and Type | Method and Description |
---|---|
private IFinishedRecipe |
enhance(IFinishedRecipe vanilla) |
private Ingredient |
enhance(ResourceLocation name,
Ingredient vanilla) |
private IFinishedRecipe |
enhance(ShapedRecipeBuilder.Result vanilla) |
private IFinishedRecipe |
enhance(ShapelessRecipeBuilder.Result vanilla) |
private void |
exclude(IItemProvider item) |
private <T,R> R |
getField(java.lang.Class<T> clz,
T inst,
int index) |
protected void |
registerRecipes(java.util.function.Consumer<IFinishedRecipe> consumer) |
private void |
replace(IItemProvider item,
Tag<Item> tag) |
protected void |
saveRecipeAdvancement(DirectoryCache cache,
com.google.gson.JsonObject advancementJson,
java.nio.file.Path pathIn) |
act, enteredBlock, getName, hasItem, hasItem, hasItem
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
save
private java.util.Set<ResourceLocation> excludes
public ForgeRecipeProvider(DataGenerator generatorIn)
private void exclude(IItemProvider item)
private void replace(IItemProvider item, Tag<Item> tag)
protected void registerRecipes(java.util.function.Consumer<IFinishedRecipe> consumer)
registerRecipes
in class RecipeProvider
protected void saveRecipeAdvancement(DirectoryCache cache, com.google.gson.JsonObject advancementJson, java.nio.file.Path pathIn)
saveRecipeAdvancement
in class RecipeProvider
private IFinishedRecipe enhance(IFinishedRecipe vanilla)
private IFinishedRecipe enhance(ShapelessRecipeBuilder.Result vanilla)
private IFinishedRecipe enhance(ShapedRecipeBuilder.Result vanilla)
private Ingredient enhance(ResourceLocation name, Ingredient vanilla)
private <T,R> R getField(java.lang.Class<T> clz, T inst, int index)