ItemPredicateBuilder
Link to itempredicatebuilder
Importare la Classe
Link to importare-la-classe
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;
Metodi
Link to metodi
Name: amount
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.amount(amount as IntMinMaxBoundsPredicate) as ItemPredicateBuilder
Parametro | Tipo |
---|---|
Parametro amount | Tipo 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
Parametro | Tipo |
---|---|
Parametro durability | Tipo IntMinMaxBoundsPredicate |
Name: enchantedWith
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.enchantedWith(predicate as EnchantmentPredicate) as ItemPredicateBuilder
Parametro | Tipo |
---|---|
Parametro predicate | Tipo EnchantmentPredicate |
Name: items
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.items(items as IItemStack[]) as ItemPredicateBuilder
Parametro | Tipo |
---|---|
Parametro items | Tipo IItemStack[] |
Name: items
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.items(items as ItemDefinition[]) as ItemPredicateBuilder
Parametro | Tipo |
---|---|
Parametro items | Tipo ItemDefinition[] |
Name: nbt
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.nbt(nbt as IData) as ItemPredicateBuilder
Parametro | Tipo |
---|---|
Parametro nbt | Tipo IData |
Name: nbt
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.nbt(nbt as MapData) as ItemPredicateBuilder
Parametro | Tipo |
---|---|
Parametro nbt | Tipo MapData |
Name: potion
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.potion(potion as Potion) as ItemPredicateBuilder
Parametro | Tipo |
---|---|
Parametro potion | Tipo Potion |
Name: storingEnchantment
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.storingEnchantment(predicate as EnchantmentPredicate) as ItemPredicateBuilder
Parametro | Tipo |
---|---|
Parametro predicate | Tipo EnchantmentPredicate |
Name: tag
Return Type: ItemPredicateBuilder
ZenScript CopyItemPredicateBuilder.tag(tag as KnownTag<ItemDefinition>) as ItemPredicateBuilder
Parametro | Tipo |
---|---|
Parametro tag | Tipo KnownTag<ItemDefinition> |