MobEffectUtil
Link to mobeffectutil
Diese Klasse importieren
Link to diese-klasse-importieren
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
Parameter | Type | Beschreibung |
---|---|---|
Parameter instance | Type MobEffectInstance | Beschreibung No Description Provided |
Parameter durationFactor | Type float | Beschreibung No Description Provided |
Name: getDigSpeedAmplification
Return Type: int
ZenScript CopyMobEffectUtil.getDigSpeedAmplification(entity as LivingEntity) as int
Parameter | Type | Beschreibung |
---|---|---|
Parameter entity | Type LivingEntity | Beschreibung No Description Provided |
Name: hasDigSpeed
Return Type: boolean
ZenScript CopyMobEffectUtil.hasDigSpeed(entity as LivingEntity) as boolean
Parameter | Type | Beschreibung |
---|---|---|
Parameter entity | Type LivingEntity | Beschreibung No Description Provided |
Name: hasWaterBreathing
Return Type: boolean
ZenScript CopyMobEffectUtil.hasWaterBreathing(entity as LivingEntity) as boolean
Parameter | Type | Beschreibung |
---|---|---|
Parameter entity | Type LivingEntity | Beschreibung No Description Provided |