mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 17:52:28 +01:00
#1101: Implement LivingEntity#canBreatheUnderwater()
By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
parent
ccb7421c43
commit
2935ef7994
1 changed files with 5 additions and 0 deletions
|
@ -697,6 +697,11 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
|||
getHandle().getBrain().setMemory(CraftMemoryKey.fromMemoryKey(memoryKey), CraftMemoryMapper.toNms(t));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBreatheUnderwater() {
|
||||
return getHandle().canBreatheUnderwater();
|
||||
}
|
||||
|
||||
@Override
|
||||
public EntityCategory getCategory() {
|
||||
EnumMonsterType type = getHandle().getMobType(); // Not actually an enum?
|
||||
|
|
Loading…
Reference in a new issue