MobEffectUtil
Link to mobeffectutil
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 Copyimport crafttweaker.api.entity.effect.MobEffectUtil;
Static Methods
Link to static-methods
Name: formatDuration
Return Type: Component
ZenScript CopyMobEffectUtil.formatDuration(instance as MobEffectInstance, durationFactor as float) as Component
Parameter | Type |
---|---|
Parameter instance | Type MobEffectInstance |
Parameter durationFactor | Type float |
Name: getDigSpeedAmplification
Return Type: int
ZenScript CopyMobEffectUtil.getDigSpeedAmplification(entity as LivingEntity) as int
Parameter | Type |
---|---|
Parameter entity | Type LivingEntity |
Name: hasDigSpeed
Return Type: boolean
ZenScript CopyMobEffectUtil.hasDigSpeed(entity as LivingEntity) as boolean
Parameter | Type |
---|---|
Parameter entity | Type LivingEntity |
Name: hasWaterBreathing
Return Type: boolean
ZenScript CopyMobEffectUtil.hasWaterBreathing(entity as LivingEntity) as boolean
Parameter | Type |
---|---|
Parameter entity | Type LivingEntity |