#1101: Implement LivingEntity#canBreatheUnderwater()

By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
CraftBukkit/Spigot 2022-09-04 21:34:21 +10:00
parent ccb7421c43
commit 2935ef7994

View file

@ -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?