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.
Extends
AbsorptionMobEffect extends MobEffect
.
Implements
Undocumented Interfaces
IForgeMobEffect
Members
addAttributeModifier(attribute as Attribute, name as string, value as double, operation as Operation) as MobEffect
Parameters:
name: string
Type: string
value: double
Type: double
operation: AttributeOperation
Type: AttributeOperation
Return Type:
MobEffect
applyEffectTick(entity as LivingEntity, amplifier as int)
Parameters:
entity: LivingEntity
Type: LivingEntity
amplifier: int
Type: int
applyInstantenousEffect(source as Entity, indirectSource as Entity, target as LivingEntity, amplifier as int, effectiveness as double)
Parameters:
Getter
Return Type:
bool
beneficial() as bool
Return Type:
bool
Getter
Return Type:
MobEffectCategory
category() as MobEffectCategory
Return Type:
MobEffectCategory
Getter
Return Type:
int
color() as int
Return Type:
int
Getter
Return Type:
string
Getter
Return Type:
string
descriptionId() as string
Return Type:
string
getAttributeModifiers() as AttributeModifier[Attribute]
Return Type:
AttributeModifier[Attribute]
getAttributeModifierValue(amplifier as int, modifier as AttributeModifier) as double
Parameters:
amplifier: int
Type: int
modifier: AttributeModifier
Type: AttributeModifier
Return Type:
double
Getter
Return Type:
bool
instantenous() as bool
Return Type:
bool
isDurationEffectTick(duration as int, amplifier as int) as bool
Parameters:
duration: int
Type: int
amplifier: int
Type: int
Return Type:
bool
Getter
Return Type:
ResourceLocation
registryName() as ResourceLocation
Return Type:
ResourceLocation