ItemPredicateBuilder

Link to itempredicatebuilder

Импорт класса

Link to импорт-класса

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
ПараметрТип
Параметр
amount
Тип
IntMinMaxBoundsPredicate

Name: build

Return Type: ItemPredicate

ZenScript
Copy
// ItemPredicateBuilder.build() as ItemPredicate

myItemPredicateBuilder.build();

Name: durability

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.durability(durability as IntMinMaxBoundsPredicate) as ItemPredicateBuilder
ПараметрТип
Параметр
durability
Тип
IntMinMaxBoundsPredicate

Name: enchantedWith

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.enchantedWith(predicate as EnchantmentPredicate) as ItemPredicateBuilder
ПараметрТип
Параметр
predicate
Тип
EnchantmentPredicate

Name: items

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.items(items as IItemStack[]) as ItemPredicateBuilder
ПараметрТип
Параметр
items
Тип
IItemStack[]

Name: items

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.items(items as ItemDefinition[]) as ItemPredicateBuilder
ПараметрТип
Параметр
items
Тип
ItemDefinition[]

Name: nbt

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.nbt(nbt as IData) as ItemPredicateBuilder
ПараметрТип
Параметр
nbt
Тип
IData

Name: nbt

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.nbt(nbt as MapData) as ItemPredicateBuilder
ПараметрТип
Параметр
nbt
Тип
MapData

Name: potion

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.potion(potion as Potion) as ItemPredicateBuilder
ПараметрТип
Параметр
potion
Тип
Potion

Link to storingEnchantment

Name: storingEnchantment

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.storingEnchantment(predicate as EnchantmentPredicate) as ItemPredicateBuilder
ПараметрТип
Параметр
predicate
Тип
EnchantmentPredicate

Name: tag

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.tag(tag as KnownTag<ItemDefinition>) as ItemPredicateBuilder
ПараметрТип
Параметр
tag
Тип
KnownTag<ItemDefinition>