SPIGOT-5591: Allow concurrent potion effects

This commit is contained in:
md_5 2020-02-23 10:33:05 +11:00
parent f52c70ab17
commit ae72ba3a43

View file

@ -252,9 +252,6 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
/** /**
* Adds the given {@link PotionEffect} to the living entity. * Adds the given {@link PotionEffect} to the living entity.
* <p>
* Only one potion effect can be present for a given {@link
* PotionEffectType}.
* *
* @param effect PotionEffect to be added * @param effect PotionEffect to be added
* @return whether the effect could be added * @return whether the effect could be added
@ -270,7 +267,10 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
* @param effect PotionEffect to be added * @param effect PotionEffect to be added
* @param force whether conflicting effects should be removed * @param force whether conflicting effects should be removed
* @return whether the effect could be added * @return whether the effect could be added
* @deprecated no need to force since multiple effects of the same type are
* now supported.
*/ */
@Deprecated
public boolean addPotionEffect(@NotNull PotionEffect effect, boolean force); public boolean addPotionEffect(@NotNull PotionEffect effect, boolean force);
/** /**