diff --git a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java b/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java index 5077ec367a..9f876af232 100644 --- a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java +++ b/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java @@ -588,6 +588,14 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource */ void setMemory(@NotNull MemoryKey memoryKey, @Nullable T memoryValue); + /** + * Returns true if this entity can breathe underwater and will not take + * suffocation damage when its air supply reaches zero. + * + * @return true if the entity can breathe underwater + */ + public boolean canBreatheUnderwater(); + /** * Get the category to which this entity belongs. *