Invalid leaf directive! `since`

ITargetingStrategy

Link to itargetingstrategy

Represents a way of targeting components for replacement.

A targeting strategy is thus responsible for determining how IRecipeComponent<T>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 this#castStrategy(IRecipeComponent, Object, Function).

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.recipe.replacement.ITargetingStrategy;

已实现的接口

Link to 已实现的接口

ITargetingStrategy implements the following interfaces. That means all methods defined in these interfaces are also available in ITargetingStrategy