SPIGOT-7198: Add Sittable interface to Camel

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2022-12-08 17:53:57 +11:00
parent 2111d3575c
commit 3b551e84ca

View file

@ -40,4 +40,18 @@ public class CraftCamel extends CraftAbstractHorse implements Camel {
public void setDashing(boolean dashing) {
getHandle().setDashing(dashing);
}
@Override
public boolean isSitting() {
return getHandle().isPoseSitting();
}
@Override
public void setSitting(boolean sitting) {
if (sitting) {
getHandle().sitDown();
} else {
getHandle().standUp();
}
}
}