Add Missing Entity API: Cat (#5744)
This commit is contained in:
parent
f44d237de9
commit
159112ef41
2 changed files with 80 additions and 9 deletions
|
@ -4,6 +4,47 @@ Date: Fri, 28 May 2021 21:06:59 -0400
|
|||
Subject: [PATCH] Missing Entity Behavior API
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/entity/Cat.java b/src/main/java/org/bukkit/entity/Cat.java
|
||||
index c2a566b864c82ffb094b7334d9e6e25a1bfc87d1..c340fecb61bac66baf0f44189d21bc85289b1269 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Cat.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Cat.java
|
||||
@@ -54,4 +54,36 @@ public interface Cat extends Tameable, Sittable {
|
||||
JELLIE,
|
||||
ALL_BLACK;
|
||||
}
|
||||
+
|
||||
+ // Paper Start - More cat api
|
||||
+ /**
|
||||
+ * Sets if the cat is lying down.
|
||||
+ * This is visual and does not affect the behaviour of the cat.
|
||||
+ *
|
||||
+ * @param lyingDown whether the cat should lie down
|
||||
+ */
|
||||
+ public void setLyingDown(boolean lyingDown);
|
||||
+
|
||||
+ /**
|
||||
+ * Gets if the cat is lying down.
|
||||
+ *
|
||||
+ * @return whether the cat is lying down
|
||||
+ */
|
||||
+ public boolean isLyingDown();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets if the cat has its head up.
|
||||
+ * This is visual and does not affect the behaviour of the cat.
|
||||
+ *
|
||||
+ * @param headUp head is up
|
||||
+ */
|
||||
+ public void setHeadUp(boolean headUp);
|
||||
+
|
||||
+ /**
|
||||
+ * Gets if the cat has its head up.
|
||||
+ *
|
||||
+ * @return head is up
|
||||
+ */
|
||||
+ public boolean isHeadUp();
|
||||
+ // Paper End - More cat api
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/entity/Fox.java b/src/main/java/org/bukkit/entity/Fox.java
|
||||
index 498e182846b81d50b3a594254e8b341fb23e8763..3826363a1954afcddaadec7f96ac18300f8e89e9 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Fox.java
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue