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.
import crafttweaker.api.predicate.EnchantmentPredicate;
Members
static create(enchantment as Enchantment) as EnchantmentPredicate
EnchantmentPredicate.create(myEnchantment);
Parameters:
enchantment: Enchantment
Type: Enchantment
Return Type:
EnchantmentPredicate
static create(level as Ints) as EnchantmentPredicate
EnchantmentPredicate.create(myInts);
Parameters:
level: IntMinMaxBoundsPredicate
Type: IntMinMaxBoundsPredicate
Return Type:
EnchantmentPredicate
static create(enchantment as Enchantment, level as Ints) as EnchantmentPredicate
// EnchantmentPredicate.create(enchantment as Enchantment, level as IntMinMaxBoundsPredicate) as EnchantmentPredicate;EnchantmentPredicate.create(myEnchantment, myInts);
Parameters:
enchantment: Enchantment
Type: Enchantment
level: IntMinMaxBoundsPredicate
Type: IntMinMaxBoundsPredicate
Return Type:
EnchantmentPredicate