mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 04:02:06 -07:00
Add method to remove all active potion effects
This commit is contained in:
@@ -573,6 +573,13 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
||||
return effects;
|
||||
}
|
||||
|
||||
// Paper start - LivingEntity#clearActivePotionEffects();
|
||||
@Override
|
||||
public boolean clearActivePotionEffects() {
|
||||
return this.getHandle().removeAllEffects(EntityPotionEffectEvent.Cause.PLUGIN);
|
||||
}
|
||||
// Paper end
|
||||
|
||||
@Override
|
||||
public <T extends Projectile> T launchProjectile(Class<? extends T> projectile) {
|
||||
return this.launchProjectile(projectile, null);
|
||||
|
Reference in New Issue
Block a user