mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
#787: Add LivingEntity#canBreatheUnderwater()
This commit is contained in:
parent
dea11a5f1a
commit
2683d76602
1 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue