mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-08 16:12:18 -07:00
#787: Add LivingEntity#canBreatheUnderwater()
By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
@@ -588,6 +588,14 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
|||||||
*/
|
*/
|
||||||
<T> void setMemory(@NotNull MemoryKey<T> memoryKey, @Nullable T memoryValue);
|
<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.
|
* Get the category to which this entity belongs.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user