MobEffectUtil
Link to mobeffectutil
导入类
Link to 导入类
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: string
ZenScript CopyMobEffectUtil.formatDuration(instance as MobEffectInstance, durationFactor as float) as string
参数 | 类型 |
---|---|
参数 instance | 类型 MobEffectInstance |
参数 durationFactor | 类型 float |
Name: getDigSpeedAmplification
Return Type: int
ZenScript CopyMobEffectUtil.getDigSpeedAmplification(entity as LivingEntity) as int
参数 | 类型 |
---|---|
参数 entity | 类型 LivingEntity |
Name: hasDigSpeed
Return Type: boolean
ZenScript CopyMobEffectUtil.hasDigSpeed(entity as LivingEntity) as boolean
参数 | 类型 |
---|---|
参数 entity | 类型 LivingEntity |
Name: hasWaterBreathing
Return Type: boolean
ZenScript CopyMobEffectUtil.hasWaterBreathing(entity as LivingEntity) as boolean
参数 | 类型 |
---|---|
参数 entity | 类型 LivingEntity |