ItemPredicateBuilder

Link to itempredicatebuilder

Diese Klasse importieren

Link to diese-klasse-importieren

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
ParameterTypeBeschreibung
Parameter
amount
Type
IntMinMaxBoundsPredicate
Beschreibung
No Description Provided

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
ParameterTypeBeschreibung
Parameter
durability
Type
IntMinMaxBoundsPredicate
Beschreibung
No Description Provided

Name: enchantedWith

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.enchantedWith(predicate as EnchantmentPredicate) as ItemPredicateBuilder
ParameterTypeBeschreibung
Parameter
predicate
Type
EnchantmentPredicate
Beschreibung
No Description Provided

Name: items

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.items(items as IItemStack[]) as ItemPredicateBuilder
ParameterTypeBeschreibung
Parameter
items
Type
IItemStack[]
Beschreibung
No Description Provided

Name: items

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.items(items as ItemDefinition[]) as ItemPredicateBuilder
ParameterTypeBeschreibung
Parameter
items
Type
ItemDefinition[]
Beschreibung
No Description Provided

Name: nbt

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.nbt(nbt as IData) as ItemPredicateBuilder
ParameterTypeBeschreibung
Parameter
nbt
Type
IData
Beschreibung
No Description Provided

Name: nbt

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.nbt(nbt as MapData) as ItemPredicateBuilder
ParameterTypeBeschreibung
Parameter
nbt
Type
MapData
Beschreibung
No Description Provided

Name: potion

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.potion(potion as Potion) as ItemPredicateBuilder
ParameterTypeBeschreibung
Parameter
potion
Type
Potion
Beschreibung
No Description Provided

Link to storingEnchantment

Name: storingEnchantment

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.storingEnchantment(predicate as EnchantmentPredicate) as ItemPredicateBuilder
ParameterTypeBeschreibung
Parameter
predicate
Type
EnchantmentPredicate
Beschreibung
No Description Provided

Name: tag

Return Type: ItemPredicateBuilder

ZenScript
Copy
ItemPredicateBuilder.tag(tag as MCTag<ItemDefinition>) as ItemPredicateBuilder
ParameterTypeBeschreibung
Parameter
tag
Type
MCTag<ItemDefinition>
Beschreibung
No Description Provided