Constructs new MobEffectInstance object by given potion effect numeric ID.
Constructs new MobEffectInstance object by given potion effect numeric ID and effect duration.
Constructs new MobEffectInstance object by given potion effect numeric ID, effect duration and amplifier.
Constructs new MobEffectInstance object using a wide set of parameters.
numeric ID of the potion effect
effect duration
effect amplifier (remember that amplifier is 1 less than effect level displayed like a roman numeral)
unknown parameter, set to false
whether the effect produces particles coming from an entity with it applied
whether the effect is visible in potion effects window
Constructs new MobEffectInstance object using a wide set of parameters.
numeric ID of the potion effect
effect duration on peaceful game difficulty
effect duration on easy game difficulty
effect duration on normal game difficulty
effect duration on hard game difficulty
effect amplifier (remember that amplifier is 1 less than effect level displayed like a roman numeral)
unknown parameter, set to false
whether the effect produces particles coming from an entity with it applied
whether the effect is visible in potion effects window
whether the effect is visible in potion effects window
effect amplifier (remember that amplifier is 1 less than effect level displayed like a roman numeral)
effect duration for a specific game difficulty above peaceful (1 - easy, 2 - normal, 3 - hard). If it's not specified, -1 is returned.
effect duration
numeric ID of the potion effect
effect duration if it is applied as a lingering potion
(it is actually duration * 0.25
)
pointer to the native object wrapped by the MobEffectInstance object, represented by a signed 64-bit integer
effect duration if it is applied as a splash potion
(it is actually duration * 0.75
)
whether the following MobEffectInstance has duration for a specific game difficulty above peaceful
whether the effect produces particles coming from an entity with it applied
Sets effect duration for a specific game difficulty above peaceful (1 - easy, 2 - normal, 3 - hard)
Sets current effect duration
Generated using TypeDoc
Wrapper for the native
MobEffectInstance
class to be used to represent the potion effect that is applied to an entity, or that is going to be applied to them1.0