createEffect

public abstract PotionEffect createEffect(PotionEffectType potion, int duration, int amplifier)

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

Return

The resulting potion effect

Parameters

potion

The type of potion

duration

The duration in ticks

amplifier

The amplifier of the effect