ItemPredicateBuilder

Link to itempredicatebuilder

Importing the class

Link to importing-the-class

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.predicate.builder.ItemPredicateBuilder;

Name: amount

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.amount(amount as IntMinMaxBoundsPredicate) as ItemPredicateBuilder
ParameterTypeDescription
Parameter
amount
Type
IntMinMaxBoundsPredicate
Description
No Description Provided

Name: build

Return Type: ItemPredicate

ZenScript
Copy
// ItemPredicateBuilder.build() as ItemPredicate

myItemPredicateBuilder.build();

Link to g--2

Name: durability

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.durability(durability as IntMinMaxBoundsPredicate) as ItemPredicateBuilder
ParameterTypeDescription
Parameter
durability
Type
IntMinMaxBoundsPredicate
Description
No Description Provided

Link to g--3

Name: enchantedWith

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.enchantedWith(predicate as EnchantmentPredicate) as ItemPredicateBuilder
ParameterTypeDescription
Parameter
predicate
Type
EnchantmentPredicate
Description
No Description Provided

Name: items

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.items(items as IItemStack[]) as ItemPredicateBuilder
ParameterTypeDescription
Parameter
items
Type
IItemStack[]
Description
No Description Provided

Name: items

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.items(items as ItemDefinition[]) as ItemPredicateBuilder
ParameterTypeDescription
Parameter
items
Type
ItemDefinition[]
Description
No Description Provided

Name: nbt

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.nbt(nbt as IData) as ItemPredicateBuilder
ParameterTypeDescription
Parameter
nbt
Type
IData
Description
No Description Provided

Name: nbt

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.nbt(nbt as MapData) as ItemPredicateBuilder
ParameterTypeDescription
Parameter
nbt
Type
MapData
Description
No Description Provided

Name: potion

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.potion(potion as Potion) as ItemPredicateBuilder
ParameterTypeDescription
Parameter
potion
Type
Potion
Description
No Description Provided

Link to g--9

Name: storingEnchantment

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.storingEnchantment(predicate as EnchantmentPredicate) as ItemPredicateBuilder
ParameterTypeDescription
Parameter
predicate
Type
EnchantmentPredicate
Description
No Description Provided

Name: tag

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.tag(tag as MCTag<ItemDefinition>) as ItemPredicateBuilder
ParameterTypeDescription
Parameter
tag
Type
MCTag<ItemDefinition>
Description
No Description Provided