#787: Add LivingEntity#canBreatheUnderwater()

By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
Bukkit/Spigot
2022-09-04 21:34:17 +10:00
parent 6ac3e7166b
commit 04574c48bb

View File

@@ -588,6 +588,14 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
*/
<T> void setMemory(@NotNull MemoryKey<T> 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 <code>true</code> if the entity can breathe underwater
*/
public boolean canBreatheUnderwater();
/**
* Get the category to which this entity belongs.
*