Add method to remove all active potion effects

This commit is contained in:
Jake Potrebic 2023-06-17 13:17:25 -07:00
parent d22d2a19de
commit bd6baf7618

View file

@ -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);