mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-15 14:13:56 +01:00
Add method to remove all active potion effects
This commit is contained in:
parent
d22d2a19de
commit
bd6baf7618
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue