mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 02:22:12 +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) {
|
||||
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