Class SpecificRecipesTargetingRule
java.lang.Object
com.blamejared.crafttweaker.api.recipe.replacement.rule.SpecificRecipesTargetingRule
- All Implemented Interfaces:
ITargetingRule
-
Method Summary
Modifier and TypeMethodDescriptiondescribe()Describes in a short and simple sentence the behavior of this rule.static SpecificRecipesTargetingRuleof(Collection<net.minecraft.world.item.crafting.Recipe<?>> recipes) static SpecificRecipesTargetingRuleof(net.minecraft.world.item.crafting.Recipe<?>... recipes) Collection<net.minecraft.world.item.crafting.Recipe<?>>recipes()booleanshouldBeReplaced(net.minecraft.world.item.crafting.Recipe<?> recipe, IRecipeManager<?> manager) Indicates whether the given recipe should undergo ingredient replacement or not.
-
Method Details
-
of
public static SpecificRecipesTargetingRule of(Collection<net.minecraft.world.item.crafting.Recipe<?>> recipes) -
of
public static SpecificRecipesTargetingRule of(net.minecraft.world.item.crafting.Recipe<?>... recipes) -
shouldBeReplaced
public boolean shouldBeReplaced(net.minecraft.world.item.crafting.Recipe<?> recipe, IRecipeManager<?> manager) Description copied from interface:ITargetingRuleIndicates whether the given recipe should undergo ingredient replacement or not.Rules are allowed to check any aspect of the provided objects to validate the recipe, as long as the result remains consistent across multiple calls with the same objects.
- Specified by:
shouldBeReplacedin interfaceITargetingRule- Parameters:
recipe- The recipe to check for targeting.manager- The recipe manager that is responsible for the given recipe.- Returns:
- Whether the given recipe should undergo ingredient replacement or not.
-
describe
Description copied from interface:ITargetingRuleDescribes in a short and simple sentence the behavior of this rule.- Specified by:
describein interfaceITargetingRule- Returns:
- The description of this rule.
-
recipes
-