Interface IFilteringRule

All Superinterfaces:
ITargetingFilter
All Known Implementing Classes:
ComponentFilteringRule, CustomFilteringRule, ModsFilteringRule, NameFilteringRule, NotFilteringRule, TypeFilteringRule

@ZenRegister public interface IFilteringRule extends ITargetingFilter
Represents an ITargetingFilter that can be applied by the user onto a Replacer.

Much like a targeting filter, a filtering rule can remove a set of recipes from being able to be inspected by a Replacer. The same condition apply, meaning that the filter is positive: it specifies which recipes the replacer is allowed to inspect.

For example, using a ModsFilteringRule indicates that only the specified mods will be targeted by the replacer.

Since:
10.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Describes the actions of this filtering rule in a human-readable form, for log output.

    Methods inherited from interface com.blamejared.crafttweaker.api.recipe.replacement.ITargetingFilter

    castFilter
  • Method Details

    • describe

      String describe()
      Describes the actions of this filtering rule in a human-readable form, for log output.
      Returns:
      A human-readable description of this rule.
      Since:
      10.0.0