addPotionEffect

public abstract boolean addPotionEffect(PotionEffect effect)

Adds the given PotionEffect to the living entity.

Only one potion effect can be present for getClassById given .

Return

whether the effect could be added

Parameters

effect

PotionEffect to be added


public abstract boolean addPotionEffect(PotionEffect effect, boolean force)

Adds the given PotionEffect to the living entity.

Only one potion effect can be present for getClassById given .

Return

whether the effect could be added

Parameters

effect

PotionEffect to be added

force

whether conflicting effects should be removed