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.
import crafttweaker.api.entity.effect.InstantenousMobEffect;
Extends
InstantenousMobEffect extends MobEffect
.
Implements
Undocumented Interfaces
FeatureElement
,IMobEffectExtension
Members
addAttributeModifier(attribute as Attribute, id as ResourceLocation, value as double, operation as Operation) as MobEffect
// InstantenousMobEffect.addAttributeModifier(attribute as Attribute, id as ResourceLocation, value as double, operation as AttributeOperation) as MobEffect;myInstantenousMobEffect.addAttributeModifier(myAttribute, myResourceLocation, myDouble, myOperation);
Parameters:
id: ResourceLocation
Type: ResourceLocation
value: double
Type: double
operation: AttributeOperation
Type: AttributeOperation
Return Type:
MobEffect
applyEffectTick(entity as LivingEntity, amplifier as int)
myInstantenousMobEffect.applyEffectTick(myLivingEntity, myInt);
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)
// 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:
Getter
// InstantenousMobEffect.beneficial as boolmyInstantenousMobEffect.beneficial
Return Type:
bool
beneficial() as bool
// InstantenousMobEffect.beneficial() as bool;myInstantenousMobEffect.beneficial();
Return Type:
bool
Getter
// InstantenousMobEffect.category as MobEffectCategorymyInstantenousMobEffect.category
Return Type:
MobEffectCategory
category() as MobEffectCategory
Getter
// InstantenousMobEffect.color as intmyInstantenousMobEffect.color
Return Type:
int
color() as int
// InstantenousMobEffect.color() as int;myInstantenousMobEffect.color();
Return Type:
int
Getter
// InstantenousMobEffect.commandString as stringmyInstantenousMobEffect.commandString
Return Type:
string
Getter
// InstantenousMobEffect.descriptionId as stringmyInstantenousMobEffect.descriptionId
Return Type:
string
descriptionId() as string
// InstantenousMobEffect.descriptionId() as string;myInstantenousMobEffect.descriptionId();
Return Type:
string
getAttributeModifiers(amplifier as int) as AttributeModifier[Attribute]
myInstantenousMobEffect.getAttributeModifiers(myInt);
Parameters:
amplifier: int
Type: int
Return Type:
AttributeModifier[Attribute]
Getter
// InstantenousMobEffect.instantenous as boolmyInstantenousMobEffect.instantenous
Return Type:
bool
instantenous() as bool
// InstantenousMobEffect.instantenous() as bool;myInstantenousMobEffect.instantenous();
Return Type:
bool
Getter
// InstantenousMobEffect.registryName as ResourceLocationmyInstantenousMobEffect.registryName
Return Type:
ResourceLocation
registryName() as ResourceLocation
shouldApplyEffectTickThisTick(duration as int, amplifier as int) as bool
// InstantenousMobEffect.shouldApplyEffectTickThisTick(duration as int, amplifier as int) as bool;myInstantenousMobEffect.shouldApplyEffectTickThisTick(myInt, myInt);
Parameters:
duration: int
Type: int
amplifier: int
Type: int
Return Type:
bool