ItemPredicate

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.ItemPredicate;

Members

static create() as Builder
script.zs
// ItemPredicate.create() as Builder;
ItemPredicate.create();

Return Type: ItemPredicateBuilder

static create(items as Item[]) as Builder
script.zs
// ItemPredicate.create(items as Item[]) as Builder;
ItemPredicate.create(myItem[]);

Parameters:

items Type: ItemDefinition[]

Return Type: ItemPredicateBuilder

static create(items as IItemStack[]) as Builder
script.zs
// ItemPredicate.create(items as IItemStack[]) as Builder;
ItemPredicate.create(myIItemStack[]);

Parameters:

items Type: IItemStack[]

Return Type: ItemPredicateBuilder

static create(tag as KnownTag<Item>) as Builder
script.zs
// ItemPredicate.create(tag as KnownTag<Item>) as Builder;
ItemPredicate.create(myKnownTag);

Parameters:

Return Type: ItemPredicateBuilder