hasPotionEffect

public abstract boolean hasPotionEffect(PotionEffectType type)

Returns whether the living entity already has an existing effect of the given PotionEffectType applied to it.

Return

whether the living entity has this potion effect active on them

Parameters

type

the potion type to check