SPIGOT-3246: Use Sittable for Ocelot, Wolf and Parrot

By: BlackHole <black-hole@live.com>
This commit is contained in:
Bukkit/Spigot
2017-05-15 23:29:02 +02:00
parent 331d059798
commit d3b7eee1f4
4 changed files with 26 additions and 34 deletions

View File

@@ -0,0 +1,23 @@
package org.bukkit.entity;
/**
* An animal that can sit still.
*/
public interface Sittable {
/**
* Checks if this animal is sitting
*
* @return true if sitting
*/
boolean isSitting();
/**
* Sets if this animal is sitting. Will remove any path that the animal
* was following beforehand.
*
* @param sitting true if sitting
*/
void setSitting(boolean sitting);
}