MobEffectPredicate

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

Members

static ambient() as MobEffectInstancePredicate
script.zs
// MobEffectInstancePredicate.ambient() as MobEffectInstancePredicate;
MobEffectPredicate.ambient();

Return Type: MobEffectPredicate

static amplifier(amplifier as Ints) as MobEffectInstancePredicate
script.zs
// MobEffectInstancePredicate.amplifier(amplifier as Ints) as MobEffectInstancePredicate;
MobEffectPredicate.amplifier(myInts);

Parameters:

Return Type: MobEffectPredicate

static any() as MobEffectInstancePredicate
script.zs
// MobEffectInstancePredicate.any() as MobEffectInstancePredicate;
MobEffectPredicate.any();

Return Type: MobEffectPredicate

static create(amplifier as Ints, duration as Ints, ambient as Boolean, visible as Boolean) as MobEffectInstancePredicate
script.zs
// MobEffectInstancePredicate.create(amplifier as Ints, duration as Ints, ambient as Boolean, visible as Boolean) as MobEffectInstancePredicate;
MobEffectPredicate.create(myInts, myInts, myBoolean, myBoolean);

Parameters:

ambient Type: Boolean
visible Type: Boolean

Return Type: MobEffectPredicate

static create(amplifier as Ints, duration as Ints, ambient as Boolean) as MobEffectInstancePredicate
script.zs
// MobEffectInstancePredicate.create(amplifier as Ints, duration as Ints, ambient as Boolean) as MobEffectInstancePredicate;
MobEffectPredicate.create(myInts, myInts, myBoolean);

Parameters:

ambient Type: Boolean

Return Type: MobEffectPredicate

static create(amplifier as Ints, duration as Ints) as MobEffectInstancePredicate
script.zs
// MobEffectInstancePredicate.create(amplifier as Ints, duration as Ints) as MobEffectInstancePredicate;
MobEffectPredicate.create(myInts, myInts);

Return Type: MobEffectPredicate

static duration(duration as Ints) as MobEffectInstancePredicate
script.zs
// MobEffectInstancePredicate.duration(duration as Ints) as MobEffectInstancePredicate;
MobEffectPredicate.duration(myInts);

Return Type: MobEffectPredicate