Commits

Black Hole authored and md_5 committed 211c15e4466
SPIGOT-3246: Use Sittable for Ocelot, Wolf and Parrot
No tags

src/main/java/org/bukkit/entity/Ocelot.java

Modified
1 1
2 2 package org.bukkit.entity;
3 3
4 4 /**
5 5 * A wild tameable cat
6 6 */
7 -public interface Ocelot extends Animals, Tameable {
7 +public interface Ocelot extends Animals, Tameable, Sittable {
8 8
9 9 /**
10 10 * Gets the current type of this cat.
11 11 *
12 12 * @return Type of the cat.
13 13 */
14 14 public Type getCatType();
15 15
16 16 /**
17 17 * Sets the current type of this cat.
18 18 *
19 19 * @param type New type of this cat.
20 20 */
21 21 public void setCatType(Type type);
22 22
23 - /**
24 - * Checks if this ocelot is sitting
25 - *
26 - * @return true if sitting
27 - */
28 - public boolean isSitting();
29 -
30 - /**
31 - * Sets if this ocelot is sitting. Will remove any path that the ocelot
32 - * was following beforehand.
33 - *
34 - * @param sitting true if sitting
35 - */
36 - public void setSitting(boolean sitting);
37 -
38 23 /**
39 24 * Represents the various different cat types there are.
40 25 */
41 26 public enum Type {
42 27 WILD_OCELOT(0),
43 28 BLACK_CAT(1),
44 29 RED_CAT(2),
45 30 SIAMESE_CAT(3);
46 31
47 32 private static final Type[] types = new Type[Type.values().length];

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut