mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 03:22:19 +01:00
SPIGOT-7198: Add Sittable interface to Camel
By: md_5 <git@md-5.net>
This commit is contained in:
parent
2111d3575c
commit
3b551e84ca
1 changed files with 14 additions and 0 deletions
|
@ -40,4 +40,18 @@ public class CraftCamel extends CraftAbstractHorse implements Camel {
|
||||||
public void setDashing(boolean dashing) {
|
public void setDashing(boolean dashing) {
|
||||||
getHandle().setDashing(dashing);
|
getHandle().setDashing(dashing);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isSitting() {
|
||||||
|
return getHandle().isPoseSitting();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setSitting(boolean sitting) {
|
||||||
|
if (sitting) {
|
||||||
|
getHandle().sitDown();
|
||||||
|
} else {
|
||||||
|
getHandle().standUp();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue