Импорт класса

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
Copy
import crafttweaker.api.entity.effect.MobEffectUtil;

Name: formatDuration

Return Type: string

ZenScript
Copy
MobEffectUtil.formatDuration(instance as MobEffectInstance, durationFactor as float) as string
ПараметрТипОписание
Параметр
instance
Тип
MobEffectInstance
Описание
No Description Provided
Параметр
durationFactor
Тип
float
Описание
No Description Provided

Link to getDigSpeedAmplification

Name: getDigSpeedAmplification

Return Type: int

ZenScript
Copy
MobEffectUtil.getDigSpeedAmplification(entity as LivingEntity) as int
ПараметрТипОписание
Параметр
entity
Тип
LivingEntity
Описание
No Description Provided

Name: hasDigSpeed

Return Type: boolean

ZenScript
Copy
MobEffectUtil.hasDigSpeed(entity as LivingEntity) as boolean
ПараметрТипОписание
Параметр
entity
Тип
LivingEntity
Описание
No Description Provided

Link to hasWaterBreathing

Name: hasWaterBreathing

Return Type: boolean

ZenScript
Copy
MobEffectUtil.hasWaterBreathing(entity as LivingEntity) as boolean
ПараметрТипОписание
Параметр
entity
Тип
LivingEntity
Описание
No Description Provided