ItemPredicateBuilder
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.
Members
amount(amount as Ints) as Builder
Parameters:
amount: IntMinMaxBoundsPredicate
Type: IntMinMaxBoundsPredicate
Return Type:
ItemPredicateBuilder
build() as ItemPredicate
Return Type:
ItemPredicate
customData(nbt as MapData) as Builder
Return Type:
ItemPredicateBuilder
customData(nbt as IData) as Builder
Return Type:
ItemPredicateBuilder
durability(durability as Ints) as Builder
Parameters:
durability: IntMinMaxBoundsPredicate
Type: IntMinMaxBoundsPredicate
Return Type:
ItemPredicateBuilder
enchantedWith(predicate as EnchantmentPredicate) as Builder
Parameters:
predicate: EnchantmentPredicate
Type: EnchantmentPredicate
Return Type:
ItemPredicateBuilder
items(items as Item[]) as Builder
Parameters:
items: ItemDefinition[]
Type: ItemDefinition[]
Return Type:
ItemPredicateBuilder
items(items as IItemStack[]) as Builder
Parameters:
items: IItemStack[]
Type: IItemStack[]
Return Type:
ItemPredicateBuilder
potion(potion as Potion) as Builder
Return Type:
ItemPredicateBuilder
storingEnchantment(predicate as EnchantmentPredicate) as Builder
Parameters:
predicate: EnchantmentPredicate
Type: EnchantmentPredicate
Return Type:
ItemPredicateBuilder
tag(tag as KnownTag<Item>) as Builder
Parameters:
tag: KnownTag<ItemDefinition>
Type: KnownTag<ItemDefinition>
Return Type:
ItemPredicateBuilder