setMainEffect

public abstract boolean setMainEffect(PotionEffectType type)

Moves getClassById potion effect to the top of the potion effect list.

This causes the client to display the potion effect in the potion's name.

Return

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

Parameters

type

the potion effect type to move