EnchantmentPredicate

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.predicate.EnchantmentPredicate;

Members

static create(enchantment as Enchantment) as EnchantmentPredicate
script.zs
// EnchantmentPredicate.create(enchantment as Enchantment) as EnchantmentPredicate;
EnchantmentPredicate.create(myEnchantment);

Parameters:

enchantment Type: Enchantment

Return Type: EnchantmentPredicate

static create(level as Ints) as EnchantmentPredicate
script.zs
// EnchantmentPredicate.create(level as Ints) as EnchantmentPredicate;
EnchantmentPredicate.create(myInts);

Return Type: EnchantmentPredicate

static create(enchantment as Enchantment, level as Ints) as EnchantmentPredicate
script.zs
// EnchantmentPredicate.create(enchantment as Enchantment, level as Ints) as EnchantmentPredicate;
EnchantmentPredicate.create(myEnchantment, myInts);

Parameters:

Return Type: EnchantmentPredicate