ITargetingStrategy
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Description
Represents a way of targeting components for replacement. A targeting strategy is thus responsible for determining how IRecipeComponent
s are treated when dealing with replacement. For example, a strategy might determine that all composite components should be decomposed into atoms.
For script writers, a strategy can be obtained with the <targetingstrategy>
bracket handler.
For integration writers, an instance of a targeting strategy can be obtained through the find
method. Any newly created strategy must be registered in the CraftTweaker plugin to be available to users.
This is a FunctionalInterface whose functional method is Object, Function)
.
Implements
ITargetingStrategy
implements the following interfaces: