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 Copyimport crafttweaker.api.predicate.builder.ItemPredicateBuilder;
Методы
Link to методы
Name: amount
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.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 CopyItemPredicateBuilder.durability(durability as IntMinMaxBoundsPredicate) as ItemPredicateBuilder
Параметр | Тип |
---|---|
Параметр durability | Тип IntMinMaxBoundsPredicate |
Name: enchantedWith
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.enchantedWith(predicate as EnchantmentPredicate) as ItemPredicateBuilder
Параметр | Тип |
---|---|
Параметр predicate | Тип EnchantmentPredicate |
Name: items
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.items(items as IItemStack[]) as ItemPredicateBuilder
Параметр | Тип |
---|---|
Параметр items | Тип IItemStack[] |
Name: items
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.items(items as ItemDefinition[]) as ItemPredicateBuilder
Параметр | Тип |
---|---|
Параметр items | Тип ItemDefinition[] |
Name: nbt
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.nbt(nbt as IData) as ItemPredicateBuilder
Параметр | Тип |
---|---|
Параметр nbt | Тип IData |
Name: nbt
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.nbt(nbt as MapData) as ItemPredicateBuilder
Параметр | Тип |
---|---|
Параметр nbt | Тип MapData |
Name: potion
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.potion(potion as Potion) as ItemPredicateBuilder
Параметр | Тип |
---|---|
Параметр potion | Тип Potion |
Name: storingEnchantment
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.storingEnchantment(predicate as EnchantmentPredicate) as ItemPredicateBuilder
Параметр | Тип |
---|---|
Параметр predicate | Тип EnchantmentPredicate |
Name: tag
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.tag(tag as KnownTag<ItemDefinition>) as ItemPredicateBuilder
Параметр | Тип |
---|---|
Параметр tag | Тип KnownTag<ItemDefinition> |