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>
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
static of(mobEffect as MobEffect, duration as int = 0, amplifier as int = 0, ambient as bool = false, visible as bool = true, showIcon as bool = true, hiddenEffect as MobEffectInstance = null) as MobEffectInstance
Parameters:
duration: int
(optional) Type: int
Default Value: 0
amplifier: int
(optional) Type: int
Default Value: 0
ambient: bool
(optional) Type: bool
Default Value: false
visible: bool
(optional) Type: bool
Default Value: true
showIcon: bool
(optional) Type: bool
Default Value: true
Return Type:
MobEffectInstance
save() as MapData
Return Type:
MapData
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