MobEffectPredicate

Importing the class

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.

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

Static Methods

Return Type: MobEffectPredicate

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

Return Type: MobEffectPredicate

script.zs
MobEffectPredicate.amplifier(amplifier as IntMinMaxBoundsPredicate) as MobEffectPredicate
ParameterTypeDescription
Parameter
amplifier
Type
IntMinMaxBoundsPredicate
Description
No Description Provided

Return Type: MobEffectPredicate

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

Return Type: MobEffectPredicate

script.zs
MobEffectPredicate.create(amplifier as IntMinMaxBoundsPredicate, duration as IntMinMaxBoundsPredicate) as MobEffectPredicate
ParameterTypeDescription
Parameter
amplifier
Type
IntMinMaxBoundsPredicate
Description
No Description Provided
Parameter
duration
Type
IntMinMaxBoundsPredicate
Description
No Description Provided

Return Type: MobEffectPredicate

script.zs
MobEffectPredicate.create(amplifier as IntMinMaxBoundsPredicate, duration as IntMinMaxBoundsPredicate, ambient as bool?) as MobEffectPredicate
ParameterTypeDescription
Parameter
amplifier
Type
IntMinMaxBoundsPredicate
Description
No Description Provided
Parameter
duration
Type
IntMinMaxBoundsPredicate
Description
No Description Provided
Parameter
ambient
Type
bool?
Description
No Description Provided

Return Type: MobEffectPredicate

script.zs
MobEffectPredicate.create(amplifier as IntMinMaxBoundsPredicate, duration as IntMinMaxBoundsPredicate, ambient as bool?, visible as bool?) as MobEffectPredicate
ParameterTypeDescription
Parameter
amplifier
Type
IntMinMaxBoundsPredicate
Description
No Description Provided
Parameter
duration
Type
IntMinMaxBoundsPredicate
Description
No Description Provided
Parameter
ambient
Type
bool?
Description
No Description Provided
Parameter
visible
Type
bool?
Description
No Description Provided

Return Type: MobEffectPredicate

script.zs
MobEffectPredicate.duration(duration as IntMinMaxBoundsPredicate) as MobEffectPredicate
ParameterTypeDescription
Parameter
duration
Type
IntMinMaxBoundsPredicate
Description
No Description Provided