HealthBoostMobEffect

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.entity.effect.HealthBoostMobEffect;

Extends

HealthBoostMobEffect extends MobEffect.

Implements

Undocumented Interfaces

IForgeMobEffect

Members

addAttributeModifier(attribute as Attribute, name as string, value as double, operation as Operation) as MobEffect
script.zs
// HealthBoostMobEffect.addAttributeModifier(attribute as Attribute, name as string, value as double, operation as Operation) as MobEffect;
myHealthBoostMobEffect.addAttributeModifier(myAttribute, myString, myDouble, myOperation);

Parameters:

attribute Type: Attribute
name Type: string
value Type: double

Return Type: MobEffect

applyEffectTick(entity as LivingEntity, amplifier as int)
script.zs
// HealthBoostMobEffect.applyEffectTick(entity as LivingEntity, amplifier as int);
myHealthBoostMobEffect.applyEffectTick(myLivingEntity, myInt);

Parameters:

entity Type: LivingEntity
amplifier Type: int
applyInstantenousEffect(source as Entity, indirectSource as Entity, target as LivingEntity, amplifier as int, effectiveness as double)
script.zs
// HealthBoostMobEffect.applyInstantenousEffect(source as Entity, indirectSource as Entity, target as LivingEntity, amplifier as int, effectiveness as double);
myHealthBoostMobEffect.applyInstantenousEffect(myEntity, myEntity, myLivingEntity, myInt, myDouble);

Parameters:

source Type: Entity
indirectSource Type: Entity
target Type: LivingEntity
amplifier Type: int
effectiveness Type: double
Getter
script.zs
// HealthBoostMobEffect.beneficial as bool
myHealthBoostMobEffect.beneficial

Return Type: bool

beneficial() as bool
script.zs
// HealthBoostMobEffect.beneficial() as bool;
myHealthBoostMobEffect.beneficial();

Return Type: bool

Getter
script.zs
// HealthBoostMobEffect.category as MobEffectCategory
myHealthBoostMobEffect.category

Return Type: MobEffectCategory

category() as MobEffectCategory
script.zs
// HealthBoostMobEffect.category() as MobEffectCategory;
myHealthBoostMobEffect.category();

Return Type: MobEffectCategory

Getter
script.zs
// HealthBoostMobEffect.color as int
myHealthBoostMobEffect.color

Return Type: int

color() as int
script.zs
// HealthBoostMobEffect.color() as int;
myHealthBoostMobEffect.color();

Return Type: int

Getter
script.zs
// HealthBoostMobEffect.commandString as string
myHealthBoostMobEffect.commandString

Return Type: string

Getter
script.zs
// HealthBoostMobEffect.descriptionId as string
myHealthBoostMobEffect.descriptionId

Return Type: string

descriptionId() as string
script.zs
// HealthBoostMobEffect.descriptionId() as string;
myHealthBoostMobEffect.descriptionId();

Return Type: string

Getter
script.zs
// HealthBoostMobEffect.displayName as Component
myHealthBoostMobEffect.displayName

Return Type: Component

displayName() as Component
script.zs
// HealthBoostMobEffect.displayName() as Component;
myHealthBoostMobEffect.displayName();

Return Type: Component

getAttributeModifiers() as AttributeModifier[Attribute]
script.zs
// HealthBoostMobEffect.getAttributeModifiers() as AttributeModifier[Attribute];
myHealthBoostMobEffect.getAttributeModifiers();

Return Type: AttributeModifier[Attribute]

getAttributeModifierValue(amplifier as int, modifier as AttributeModifier) as double
script.zs
// HealthBoostMobEffect.getAttributeModifierValue(amplifier as int, modifier as AttributeModifier) as double;
myHealthBoostMobEffect.getAttributeModifierValue(myInt, myAttributeModifier);

Parameters:

amplifier Type: int

Return Type: double

Getter
script.zs
// HealthBoostMobEffect.instantenous as bool
myHealthBoostMobEffect.instantenous

Return Type: bool

instantenous() as bool
script.zs
// HealthBoostMobEffect.instantenous() as bool;
myHealthBoostMobEffect.instantenous();

Return Type: bool

isDurationEffectTick(duration as int, amplifier as int) as bool
script.zs
// HealthBoostMobEffect.isDurationEffectTick(duration as int, amplifier as int) as bool;
myHealthBoostMobEffect.isDurationEffectTick(myInt, myInt);

Parameters:

duration Type: int
amplifier Type: int

Return Type: bool

Getter
script.zs
// HealthBoostMobEffect.registryName as ResourceLocation
myHealthBoostMobEffect.registryName

Return Type: ResourceLocation

registryName() as ResourceLocation
script.zs
// HealthBoostMobEffect.registryName() as ResourceLocation;
myHealthBoostMobEffect.registryName();

Return Type: ResourceLocation