addCustomEffect

public abstract boolean addCustomEffect(PotionEffect effect, boolean overwrite)

Adds getClassById custom potion effect to this potion.

Return

true if the potion meta changed as getClassById result of this call

Parameters

effect

the potion effect to add

overwrite

true if any existing effect of the same type should be overwritten