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 Copyimport crafttweaker.api.predicate.builder.ItemPredicateBuilder;
Methods
Link to methods
Name: amount
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.amount(amount as IntMinMaxBoundsPredicate) as ItemPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter amount | Type IntMinMaxBoundsPredicate | Description No Description Provided |
Name: build
Return Type: ItemPredicate
ZenScript Copy// ItemPredicateBuilder.build() as ItemPredicate
myItemPredicateBuilder.build();
Name: durability
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.durability(durability as IntMinMaxBoundsPredicate) as ItemPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter durability | Type IntMinMaxBoundsPredicate | Description No Description Provided |
Name: enchantedWith
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.enchantedWith(predicate as EnchantmentPredicate) as ItemPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter predicate | Type EnchantmentPredicate | Description No Description Provided |
Name: items
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.items(items as IItemStack[]) as ItemPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter items | Type IItemStack[] | Description No Description Provided |
Name: items
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.items(items as ItemDefinition[]) as ItemPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter items | Type ItemDefinition[] | Description No Description Provided |
Name: nbt
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.nbt(nbt as IData) as ItemPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter nbt | Type IData | Description No Description Provided |
Name: nbt
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.nbt(nbt as MapData) as ItemPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter nbt | Type MapData | Description No Description Provided |
Name: potion
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.potion(potion as Potion) as ItemPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter potion | Type Potion | Description No Description Provided |
Name: storingEnchantment
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.storingEnchantment(predicate as EnchantmentPredicate) as ItemPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter predicate | Type EnchantmentPredicate | Description No Description Provided |
Name: tag
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.tag(tag as MCTag<ItemDefinition>) as ItemPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter tag | Type MCTag<ItemDefinition> | Description No Description Provided |