MobEffectPredicate

Link to mobeffectpredicate

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;

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
参数类型描述
参数
amplifier
类型
IntMinMaxBoundsPredicate
描述
No Description Provided

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
参数类型描述
参数
amplifier
类型
IntMinMaxBoundsPredicate
描述
No Description Provided
参数
duration
类型
IntMinMaxBoundsPredicate
描述
No Description Provided

Name: create

Return Type: MobEffectPredicate

ZenScript
Copy
MobEffectPredicate.create(amplifier as IntMinMaxBoundsPredicate, duration as IntMinMaxBoundsPredicate, ambient as bool?) as MobEffectPredicate
参数类型描述
参数
amplifier
类型
IntMinMaxBoundsPredicate
描述
No Description Provided
参数
duration
类型
IntMinMaxBoundsPredicate
描述
No Description Provided
参数
ambient
类型
bool?
描述
No Description Provided

Name: create

Return Type: MobEffectPredicate

ZenScript
Copy
MobEffectPredicate.create(amplifier as IntMinMaxBoundsPredicate, duration as IntMinMaxBoundsPredicate, ambient as bool?, visible as bool?) as MobEffectPredicate
参数类型描述
参数
amplifier
类型
IntMinMaxBoundsPredicate
描述
No Description Provided
参数
duration
类型
IntMinMaxBoundsPredicate
描述
No Description Provided
参数
ambient
类型
bool?
描述
No Description Provided
参数
visible
类型
bool?
描述
No Description Provided

Name: duration

Return Type: MobEffectPredicate

ZenScript
Copy
MobEffectPredicate.duration(duration as IntMinMaxBoundsPredicate) as MobEffectPredicate
参数类型描述
参数
duration
类型
IntMinMaxBoundsPredicate
描述
No Description Provided