Class ExcludingRecipesAndDelegatingTargetingRule
java.lang.Object
com.blamejared.crafttweaker.api.recipe.replacement.rule.ExcludingRecipesAndDelegatingTargetingRule
- All Implemented Interfaces:
ITargetingRule
public final class ExcludingRecipesAndDelegatingTargetingRule
extends Object
implements ITargetingRule
-
Method Summary
Modifier and TypeMethodDescriptiondescribe()Describes in a short and simple sentence the behavior of this rule.of(ITargetingRule delegate, Collection<net.minecraft.resources.ResourceLocation> exclusions) of(ITargetingRule delegate, net.minecraft.resources.ResourceLocation... exclusions) of(ITargetingRule delegate, net.minecraft.world.item.crafting.Recipe<?>... exclusions) 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 ExcludingRecipesAndDelegatingTargetingRule of(ITargetingRule delegate, Collection<net.minecraft.resources.ResourceLocation> exclusions) -
of
public static ExcludingRecipesAndDelegatingTargetingRule of(ITargetingRule delegate, net.minecraft.resources.ResourceLocation... exclusions) -
of
public static ExcludingRecipesAndDelegatingTargetingRule of(ITargetingRule delegate, net.minecraft.world.item.crafting.Recipe<?>... exclusions) -
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.
-