MobEffectInstance
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
Comparable<MobEffectInstance>
,IMobEffectInstanceExtension
Constructors
new(mobEffect as MobEffect)
new(mobEffect as MobEffect, duration as int)
new(mobEffect as MobEffect, duration as int, amplifier as int)
new(mobEffect as MobEffect, duration as int, amplifier as int, ambient as bool, visible as bool)
new(mobEffect as MobEffect, duration as int, amplifier as int, ambient as bool, visible as bool, showIcon as bool)
new(mobEffect as MobEffect, duration as int, amplifier as int, ambient as bool, visible as bool, showIcon as bool, hiddenEffect as MobEffectInstance)
Parameters:
duration: int
Type: int
amplifier: int
Type: int
ambient: bool
Type: bool
visible: bool
Type: bool
showIcon: bool
Type: bool
hiddenEffect: MobEffectInstance
Type: MobEffectInstance
Members
Getter
Return Type:
bool
ambient() as bool
Return Type:
bool
Getter
Return Type:
int
amplifier() as int
Return Type:
int
compareTo(other as MobEffectInstance) as int
Parameters:
other: MobEffectInstance
Type: MobEffectInstance
Return Type:
int
Getter
Return Type:
string
descriptionId() as string
Return Type:
string
Getter
Return Type:
int
duration() as int
Return Type:
int
static load(data as MapData) as MobEffectInstance
Return Type:
MobEffectInstance
Getter
Return Type:
bool
showIcon() as bool
Return Type:
bool
tick(entity as LivingEntity, onFinish as Runnable = null) as bool
Parameters:
entity: LivingEntity
Type: LivingEntity
onFinish: Runnable
(optional) Type: Runnable
Default Value: null
Return Type:
bool
update(instance as MobEffectInstance) as bool
Parameters:
instance: MobEffectInstance
Type: MobEffectInstance
Return Type:
bool
Getter
Return Type:
bool
visible() as bool
Return Type:
bool