InstantenousMobEffect

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

Extends

InstantenousMobEffect extends MobEffect.

Implements

Undocumented Interfaces

IMobEffectExtension

Members

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

Return Type: bool

beneficial() as bool
script.zs
// InstantenousMobEffect.beneficial() as bool;
myInstantenousMobEffect.beneficial();

Return Type: bool

Getter
script.zs
// InstantenousMobEffect.category as MobEffectCategory
myInstantenousMobEffect.category

Return Type: MobEffectCategory

category() as MobEffectCategory
script.zs
// InstantenousMobEffect.category() as MobEffectCategory;
myInstantenousMobEffect.category();

Return Type: MobEffectCategory

Getter
script.zs
// InstantenousMobEffect.color as int
myInstantenousMobEffect.color

Return Type: int

color() as int
script.zs
// InstantenousMobEffect.color() as int;
myInstantenousMobEffect.color();

Return Type: int

Getter
script.zs
// InstantenousMobEffect.commandString as string
myInstantenousMobEffect.commandString

Return Type: string

Getter
script.zs
// InstantenousMobEffect.descriptionId as string
myInstantenousMobEffect.descriptionId

Return Type: string

descriptionId() as string
script.zs
// InstantenousMobEffect.descriptionId() as string;
myInstantenousMobEffect.descriptionId();

Return Type: string

Getter
script.zs
// InstantenousMobEffect.displayName as Component
myInstantenousMobEffect.displayName

Return Type: Component

displayName() as Component
script.zs
// InstantenousMobEffect.displayName() as Component;
myInstantenousMobEffect.displayName();

Return Type: Component

getAttributeModifiers() as AttributeModifierTemplate[Attribute]
script.zs
// InstantenousMobEffect.getAttributeModifiers() as AttributeModifierTemplate[Attribute];
myInstantenousMobEffect.getAttributeModifiers();

Return Type: AttributeModifierTemplate[Attribute]

Getter
script.zs
// InstantenousMobEffect.instantenous as bool
myInstantenousMobEffect.instantenous

Return Type: bool

instantenous() as bool
script.zs
// InstantenousMobEffect.instantenous() as bool;
myInstantenousMobEffect.instantenous();

Return Type: bool

Getter
script.zs
// InstantenousMobEffect.registryName as ResourceLocation
myInstantenousMobEffect.registryName

Return Type: ResourceLocation

registryName() as ResourceLocation
script.zs
// InstantenousMobEffect.registryName() as ResourceLocation;
myInstantenousMobEffect.registryName();

Return Type: ResourceLocation

shouldApplyEffectTickThisTick(duration as int, amplifier as int) as bool
script.zs
// InstantenousMobEffect.shouldApplyEffectTickThisTick(duration as int, amplifier as int) as bool;
myInstantenousMobEffect.shouldApplyEffectTickThisTick(myInt, myInt);

Parameters:

duration Type: int
amplifier Type: int

Return Type: bool