MobEffectsPredicate

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.MobEffectsPredicate;

Members

static create(map as MobEffectInstancePredicate[MobEffect]) as MobEffectsPredicate
script.zs
// MobEffectsPredicate.create(map as MobEffectInstancePredicate[MobEffect]) as MobEffectsPredicate;
MobEffectsPredicate.create(myMap);

Return Type: MobEffectsPredicate

static create(effect as MobEffect, predicate as MobEffectInstancePredicate) as MobEffectsPredicate
script.zs
// MobEffectsPredicate.create(effect as MobEffect, predicate as MobEffectInstancePredicate) as MobEffectsPredicate;
MobEffectsPredicate.create(myMobEffect, myMobEffectInstancePredicate);

Parameters:

effect Type: MobEffect

Return Type: MobEffectsPredicate