Class RecipePrioritiesProvider

java.lang.Object
net.neoforged.neoforge.common.data.RecipePrioritiesProvider
All Implemented Interfaces:
DataProvider

public abstract class RecipePrioritiesProvider extends Object implements DataProvider
Data Provider class for generating the recipe_priorities.json file and adding recipe priority overrides to it. These overrides allow a specified recipe to be given a certain load priority relative to another recipe, by providing the recipe ID and the integer representing the priority. All recipes are treated with a priority of 0 by default. Recipes assigned with higher priority values will take precedent over lower priority values when choosing what recipe result to provide in a crafting block. E.g. A recipe given the priority of 1 that has matching ingredients to a recipe with a priority of 0 will output its result instead of the result of the recipe with priority 0.