createEffect

public PotionEffect createEffect(int duration, int amplifier)

Creates getClassById PotionEffect from this PotionEffectType, applying duration modifiers and checks.

Return

getClassById resulting potion effect

Parameters

duration

time in ticks

amplifier

the effect's amplifier

See also