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 | 描述 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
参数 | 类型 | 描述 |
---|---|---|
参数 durability | 类型 IntMinMaxBoundsPredicate | 描述 No Description Provided |
Name: enchantedWith
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.enchantedWith(predicate as EnchantmentPredicate) as ItemPredicateBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 predicate | 类型 EnchantmentPredicate | 描述 No Description Provided |
Name: items
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.items(items as IItemStack[]) as ItemPredicateBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 items | 类型 IItemStack[] | 描述 No Description Provided |
Name: items
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.items(items as ItemDefinition[]) as ItemPredicateBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 items | 类型 ItemDefinition[] | 描述 No Description Provided |
Name: nbt
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.nbt(nbt as IData) as ItemPredicateBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 nbt | 类型 IData #数据 | 描述 No Description Provided |
Name: nbt
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.nbt(nbt as MapData) as ItemPredicateBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 nbt | 类型 MapData #地图数据 | 描述 No Description Provided |
Name: potion
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.potion(potion as Potion) as ItemPredicateBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 potion | 类型 Potion | 描述 No Description Provided |
Name: storingEnchantment
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.storingEnchantment(predicate as EnchantmentPredicate) as ItemPredicateBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 predicate | 类型 EnchantmentPredicate | 描述 No Description Provided |
Name: tag
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.tag(tag as MCTag<ItemDefinition>) as ItemPredicateBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 tag #标签 | 类型 MCTag<ItemDefinition> | 描述 No Description Provided |