mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-17 22:49:41 -05:00
#787: Add LivingEntity#canBreatheUnderwater()
By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
1 parent
6ac3e7166b
commit
04574c48bb
1 file changed
+8
@@ -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.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user