MobEffect
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.
Implements
Undocumented Interfaces
IMobEffectExtension
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 AttributeModifierTemplate[Attribute]
Return Type:
AttributeModifierTemplate[Attribute]
Getter
Return Type:
bool
instantenous() as bool
Return Type:
bool
Getter
Return Type:
ResourceLocation
registryName() as ResourceLocation
Return Type:
ResourceLocation
shouldApplyEffectTickThisTick(duration as int, amplifier as int) as bool
Parameters:
duration: int
Type: int
amplifier: int
Type: int
Return Type:
bool