AttackDamageMobEffect

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.AttackDamageMobEffect;

Extends

AttackDamageMobEffect extends MobEffect.

Implements

Undocumented Interfaces

IForgeMobEffect

Members

addAttributeModifier(attribute as Attribute, name as string, value as double, operation as Operation) as MobEffect
script.zs
// AttackDamageMobEffect.addAttributeModifier(attribute as Attribute, name as string, value as double, operation as Operation) as MobEffect;
myAttackDamageMobEffect.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
// AttackDamageMobEffect.applyEffectTick(entity as LivingEntity, amplifier as int);
myAttackDamageMobEffect.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
// AttackDamageMobEffect.applyInstantenousEffect(source as Entity, indirectSource as Entity, target as LivingEntity, amplifier as int, effectiveness as double);
myAttackDamageMobEffect.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
// AttackDamageMobEffect.beneficial as bool
myAttackDamageMobEffect.beneficial

Return Type: bool

beneficial() as bool
script.zs
// AttackDamageMobEffect.beneficial() as bool;
myAttackDamageMobEffect.beneficial();

Return Type: bool

Getter
script.zs
// AttackDamageMobEffect.category as MobEffectCategory
myAttackDamageMobEffect.category

Return Type: MobEffectCategory

category() as MobEffectCategory
script.zs
// AttackDamageMobEffect.category() as MobEffectCategory;
myAttackDamageMobEffect.category();

Return Type: MobEffectCategory

Getter
script.zs
// AttackDamageMobEffect.color as int
myAttackDamageMobEffect.color

Return Type: int

color() as int
script.zs
// AttackDamageMobEffect.color() as int;
myAttackDamageMobEffect.color();

Return Type: int

Getter
script.zs
// AttackDamageMobEffect.commandString as string
myAttackDamageMobEffect.commandString

Return Type: string

Getter
script.zs
// AttackDamageMobEffect.descriptionId as string
myAttackDamageMobEffect.descriptionId

Return Type: string

descriptionId() as string
script.zs
// AttackDamageMobEffect.descriptionId() as string;
myAttackDamageMobEffect.descriptionId();

Return Type: string

Getter
script.zs
// AttackDamageMobEffect.displayName as Component
myAttackDamageMobEffect.displayName

Return Type: Component

displayName() as Component
script.zs
// AttackDamageMobEffect.displayName() as Component;
myAttackDamageMobEffect.displayName();

Return Type: Component

getAttributeModifiers() as AttributeModifier[Attribute]
script.zs
// AttackDamageMobEffect.getAttributeModifiers() as AttributeModifier[Attribute];
myAttackDamageMobEffect.getAttributeModifiers();

Return Type: AttributeModifier[Attribute]

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

Parameters:

amplifier Type: int

Return Type: double

Getter
script.zs
// AttackDamageMobEffect.instantenous as bool
myAttackDamageMobEffect.instantenous

Return Type: bool

instantenous() as bool
script.zs
// AttackDamageMobEffect.instantenous() as bool;
myAttackDamageMobEffect.instantenous();

Return Type: bool

isDurationEffectTick(duration as int, amplifier as int) as bool
script.zs
// AttackDamageMobEffect.isDurationEffectTick(duration as int, amplifier as int) as bool;
myAttackDamageMobEffect.isDurationEffectTick(myInt, myInt);

Parameters:

duration Type: int
amplifier Type: int

Return Type: bool

Getter
script.zs
// AttackDamageMobEffect.registryName as ResourceLocation
myAttackDamageMobEffect.registryName

Return Type: ResourceLocation

registryName() as ResourceLocation
script.zs
// AttackDamageMobEffect.registryName() as ResourceLocation;
myAttackDamageMobEffect.registryName();

Return Type: ResourceLocation