MobEffectPredicate

Link to mobeffectpredicate

Importing the class

Link to 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.

ZenScript
Copy
import crafttweaker.api.predicate.MobEffectPredicate;

Extending Record

Link to extending-record

MobEffectPredicate extends Record. That means all methods available in Record are also available in MobEffectPredicate

Name: ambient

Return Type: MobEffectPredicate

ZenScript
Copy
// MobEffectPredicate.ambient() as MobEffectPredicate

MobEffectPredicate.ambient();

Name: amplifier

Return Type: MobEffectPredicate

ZenScript
Copy
MobEffectPredicate.amplifier(amplifier as IntMinMaxBoundsPredicate) as MobEffectPredicate
ParameterType
Parameter
amplifier
Type
IntMinMaxBoundsPredicate

Name: any

Return Type: MobEffectPredicate

ZenScript
Copy
// MobEffectPredicate.any() as MobEffectPredicate

MobEffectPredicate.any();

Name: create

Return Type: MobEffectPredicate

ZenScript
Copy
MobEffectPredicate.create(amplifier as IntMinMaxBoundsPredicate, duration as IntMinMaxBoundsPredicate) as MobEffectPredicate
ParameterType
Parameter
amplifier
Type
IntMinMaxBoundsPredicate
Parameter
duration
Type
IntMinMaxBoundsPredicate

Name: create

Return Type: MobEffectPredicate

ZenScript
Copy
MobEffectPredicate.create(amplifier as IntMinMaxBoundsPredicate, duration as IntMinMaxBoundsPredicate, ambient as bool?) as MobEffectPredicate
ParameterType
Parameter
amplifier
Type
IntMinMaxBoundsPredicate
Parameter
duration
Type
IntMinMaxBoundsPredicate
Parameter
ambient
Type
bool?

Name: create

Return Type: MobEffectPredicate

ZenScript
Copy
MobEffectPredicate.create(amplifier as IntMinMaxBoundsPredicate, duration as IntMinMaxBoundsPredicate, ambient as bool??, visible as bool??) as MobEffectPredicate
ParameterType
Parameter
amplifier
Type
IntMinMaxBoundsPredicate
Parameter
duration
Type
IntMinMaxBoundsPredicate
Parameter
ambient
Type
bool??
Parameter
visible
Type
bool??

Name: duration

Return Type: MobEffectPredicate

ZenScript
Copy
MobEffectPredicate.duration(duration as IntMinMaxBoundsPredicate) as MobEffectPredicate
ParameterType
Parameter
duration
Type
IntMinMaxBoundsPredicate