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.
import crafttweaker.api.predicate.MobEffectPredicate;
Static Methods
Return Type: MobEffectPredicate
// MobEffectPredicate.ambient() as MobEffectPredicate
MobEffectPredicate.ambient();
Return Type: MobEffectPredicate
MobEffectPredicate.amplifier(amplifier as IntMinMaxBoundsPredicate) as MobEffectPredicate
Parameter | Type |
---|---|
Parameter amplifier | Type IntMinMaxBoundsPredicate |
Return Type: MobEffectPredicate
// MobEffectPredicate.any() as MobEffectPredicate
MobEffectPredicate.any();
Return Type: MobEffectPredicate
MobEffectPredicate.create(amplifier as IntMinMaxBoundsPredicate, duration as IntMinMaxBoundsPredicate) as MobEffectPredicate
Parameter | Type |
---|---|
Parameter amplifier | Type IntMinMaxBoundsPredicate |
Parameter duration | Type IntMinMaxBoundsPredicate |
Return Type: MobEffectPredicate
MobEffectPredicate.create(amplifier as IntMinMaxBoundsPredicate, duration as IntMinMaxBoundsPredicate, ambient as bool?) as MobEffectPredicate
Parameter | Type |
---|---|
Parameter amplifier | Type IntMinMaxBoundsPredicate |
Parameter duration | Type IntMinMaxBoundsPredicate |
Parameter ambient | Type bool? |
Return Type: MobEffectPredicate
MobEffectPredicate.create(amplifier as IntMinMaxBoundsPredicate, duration as IntMinMaxBoundsPredicate, ambient as bool?, visible as bool?) as MobEffectPredicate
Parameter | Type |
---|---|
Parameter amplifier | Type IntMinMaxBoundsPredicate |
Parameter duration | Type IntMinMaxBoundsPredicate |
Parameter ambient | Type bool? |
Parameter visible | Type bool? |
Return Type: MobEffectPredicate
MobEffectPredicate.duration(duration as IntMinMaxBoundsPredicate) as MobEffectPredicate
Parameter | Type |
---|---|
Parameter duration | Type IntMinMaxBoundsPredicate |
Methods
Return Type: boolean
MobEffectPredicate.matches(instance as MobEffectInstance?) as boolean
Parameter | Type |
---|---|
Parameter instance | Type MobEffectInstance? |