summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2012-03-09 15:01:28 -0500
committerEvilSeph <evilseph@gmail.com>2012-03-09 15:01:28 -0500
commit101756dcc1301190e486e377fdbcfb4284290390 (patch)
tree54d69c4c559128cde99b85bd3644c589f74ec1c2 /src
parentbc60e182cdbdc43db453d2a65d7d64f8ed673df8 (diff)
downloadbukkit-101756dcc1301190e486e377fdbcfb4284290390.tar
bukkit-101756dcc1301190e486e377fdbcfb4284290390.tar.gz
bukkit-101756dcc1301190e486e377fdbcfb4284290390.tar.lz
bukkit-101756dcc1301190e486e377fdbcfb4284290390.tar.xz
bukkit-101756dcc1301190e486e377fdbcfb4284290390.zip
Made Ocelot implement isSitting() and setSitting(). Fixes BUKKIT-993
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/entity/Ocelot.java15
1 files changed, 15 insertions, 0 deletions
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
@@ -20,6 +20,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.
*/
public enum Type {