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 |
---|---|
Parameter amount | Type IntMinMaxBoundsPredicate |
Name: build
Return Type: ItemPredicate
ZenScript Copy// ItemPredicateBuilder.build() as ItemPredicate
myItemPredicateBuilder.build();
Name: customData
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.customData(nbt as IData) as ItemPredicateBuilder
Parameter | Type |
---|---|
Parameter nbt | Type IData |
Name: customData
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.customData(nbt as MapData) as ItemPredicateBuilder
Parameter | Type |
---|---|
Parameter nbt | Type MapData |
Name: durability
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.durability(durability as IntMinMaxBoundsPredicate) as ItemPredicateBuilder
Parameter | Type |
---|---|
Parameter durability | Type IntMinMaxBoundsPredicate |
Name: enchantedWith
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.enchantedWith(predicate as EnchantmentPredicate) as ItemPredicateBuilder
Parameter | Type |
---|---|
Parameter predicate | Type EnchantmentPredicate |
Name: items
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.items(items as IItemStack[]) as ItemPredicateBuilder
Parameter | Type |
---|---|
Parameter items | Type IItemStack[] |
Name: items
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.items(items as ItemDefinition[]) as ItemPredicateBuilder
Parameter | Type |
---|---|
Parameter items | Type ItemDefinition[] |
Name: potion
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.potion(potion as Potion) as ItemPredicateBuilder
Parameter | Type |
---|---|
Parameter potion | Type Potion |
Name: storingEnchantment
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.storingEnchantment(predicate as EnchantmentPredicate) as ItemPredicateBuilder
Parameter | Type |
---|---|
Parameter predicate | Type EnchantmentPredicate |
Name: tag
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.tag(tag as KnownTag<ItemDefinition>) as ItemPredicateBuilder
Parameter | Type |
---|---|
Parameter tag | Type KnownTag<ItemDefinition> |