TagPredicate

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.predicate.TagPredicate;

Members

static isIn<T>(tag as MCTag) as TagPredicate<T>
script.zs
// TagPredicate<T>.isIn<T>(tag as MCTag) as TagPredicate<T>;
TagPredicate<T>.isIn<T>(myMCTag);

Parameters:

tag Type: MCTag

Return Type: TagPredicate<T>

static isNotIn<T>(tag as MCTag) as TagPredicate<T>
script.zs
// TagPredicate<T>.isNotIn<T>(tag as MCTag) as TagPredicate<T>;
TagPredicate<T>.isNotIn<T>(myMCTag);

Parameters:

tag Type: MCTag

Return Type: TagPredicate<T>