diff options
author | EvilSeph <evilseph@gmail.com> | 2012-03-09 15:01:28 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-09 15:01:28 -0500 |
commit | 101756dcc1301190e486e377fdbcfb4284290390 (patch) | |
tree | 54d69c4c559128cde99b85bd3644c589f74ec1c2 /src/main | |
parent | bc60e182cdbdc43db453d2a65d7d64f8ed673df8 (diff) | |
download | bukkit-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/main')
-rw-r--r-- | src/main/java/org/bukkit/entity/Ocelot.java | 15 |
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 { |