From 2a716ddd7efe836621390754ee83d588e92d425b Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 9 Mar 2012 15:01:28 -0500 Subject: [PATCH] Made Ocelot implement isSitting() and setSitting(). Fixes BUKKIT-993 By: EvilSeph --- .../src/main/java/org/bukkit/entity/Ocelot.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Ocelot.java b/paper-api/src/main/java/org/bukkit/entity/Ocelot.java index 90db8d61fa..fd6151b169 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Ocelot.java +++ b/paper-api/src/main/java/org/bukkit/entity/Ocelot.java @@ -19,6 +19,21 @@ public interface Ocelot extends Animals, Tameable { */ public void setCatType(Type type); + /** + * Checks if this ocelot is sitting + * + * @return true if sitting + */ + public boolean isSitting(); + + /** + * Sets if this ocelot is sitting + * Will remove any path that the ocelot was following beforehand. + * + * @param sitting true if sitting + */ + public void setSitting(boolean sitting); + /** * Represents the various different cat types there are. */