From 101756dcc1301190e486e377fdbcfb4284290390 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Fri, 9 Mar 2012 15:01:28 -0500 Subject: Made Ocelot implement isSitting() and setSitting(). Fixes BUKKIT-993 --- src/main/java/org/bukkit/entity/Ocelot.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src') diff --git a/src/main/java/org/bukkit/entity/Ocelot.java b/src/main/java/org/bukkit/entity/Ocelot.java index 90db8d61..fd6151b1 100644 --- a/src/main/java/org/bukkit/entity/Ocelot.java +++ b/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. */ -- cgit v1.2.3