SPIGOT-4199: Riptide related APIs

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-08-02 09:38:52 +10:00
parent 9fedd75309
commit bb6a5d8612
2 changed files with 32 additions and 0 deletions

View File

@@ -478,6 +478,11 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
getHandle().setSwimming(swimming);
}
@Override
public boolean isRiptiding() {
return getHandle().cO();
}
@Override
public AttributeInstance getAttribute(Attribute attribute) {
return getHandle().craftAttributes.getAttribute(attribute);