Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

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.

script.zs
import crafttweaker.api.recipe.replacement.ITargetingStrategy;

Description

Represents a way of targeting components for replacement.

A targeting strategy is thus responsible for determining how IRecipeComponents 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:

CommandStringDisplayable