mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07:00
Add method to remove all active potion effects
This commit is contained in:
@@ -657,6 +657,15 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
|||||||
@NotNull
|
@NotNull
|
||||||
public Collection<PotionEffect> getActivePotionEffects();
|
public Collection<PotionEffect> getActivePotionEffects();
|
||||||
|
|
||||||
|
// Paper start - LivingEntity#clearActivePotionEffects();
|
||||||
|
/**
|
||||||
|
* Removes all active potion effects for this entity.
|
||||||
|
*
|
||||||
|
* @return true if any were removed
|
||||||
|
*/
|
||||||
|
boolean clearActivePotionEffects();
|
||||||
|
// Paper end
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether the living entity has block line of sight to another.
|
* Checks whether the living entity has block line of sight to another.
|
||||||
* <p>
|
* <p>
|
||||||
|
Reference in New Issue
Block a user