AbsorptionMobEffect

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

Extends

AbsorptionMobEffect extends MobEffect.

Implements

Undocumented Interfaces

IForgeMobEffect

Members

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

Return Type: bool

beneficial() as bool
script.zs
// AbsoptionMobEffect.beneficial() as bool;
myAbsoptionMobEffect.beneficial();

Return Type: bool

Getter
script.zs
// AbsoptionMobEffect.category as MobEffectCategory
myAbsoptionMobEffect.category

Return Type: MobEffectCategory

category() as MobEffectCategory
script.zs
// AbsoptionMobEffect.category() as MobEffectCategory;
myAbsoptionMobEffect.category();

Return Type: MobEffectCategory

Getter
script.zs
// AbsoptionMobEffect.color as int
myAbsoptionMobEffect.color

Return Type: int

color() as int
script.zs
// AbsoptionMobEffect.color() as int;
myAbsoptionMobEffect.color();

Return Type: int

Getter
script.zs
// AbsoptionMobEffect.commandString as string
myAbsoptionMobEffect.commandString

Return Type: string

Getter
script.zs
// AbsoptionMobEffect.descriptionId as string
myAbsoptionMobEffect.descriptionId

Return Type: string

descriptionId() as string
script.zs
// AbsoptionMobEffect.descriptionId() as string;
myAbsoptionMobEffect.descriptionId();

Return Type: string

Getter
script.zs
// AbsoptionMobEffect.displayName as Component
myAbsoptionMobEffect.displayName

Return Type: Component

displayName() as Component
script.zs
// AbsoptionMobEffect.displayName() as Component;
myAbsoptionMobEffect.displayName();

Return Type: Component

getAttributeModifiers() as AttributeModifier[Attribute]
script.zs
// AbsoptionMobEffect.getAttributeModifiers() as AttributeModifier[Attribute];
myAbsoptionMobEffect.getAttributeModifiers();

Return Type: AttributeModifier[Attribute]

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

Parameters:

amplifier Type: int

Return Type: double

Getter
script.zs
// AbsoptionMobEffect.instantenous as bool
myAbsoptionMobEffect.instantenous

Return Type: bool

instantenous() as bool
script.zs
// AbsoptionMobEffect.instantenous() as bool;
myAbsoptionMobEffect.instantenous();

Return Type: bool

isDurationEffectTick(duration as int, amplifier as int) as bool
script.zs
// AbsoptionMobEffect.isDurationEffectTick(duration as int, amplifier as int) as bool;
myAbsoptionMobEffect.isDurationEffectTick(myInt, myInt);

Parameters:

duration Type: int
amplifier Type: int

Return Type: bool

Getter
script.zs
// AbsoptionMobEffect.registryName as ResourceLocation
myAbsoptionMobEffect.registryName

Return Type: ResourceLocation

registryName() as ResourceLocation
script.zs
// AbsoptionMobEffect.registryName() as ResourceLocation;
myAbsoptionMobEffect.registryName();

Return Type: ResourceLocation