mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-05 14:42:22 -07:00
Add Missing Entity API: Cat (#5744)
This commit is contained in:
@@ -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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Cat.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Cat.java
|
||||
@@ -0,0 +0,0 @@ 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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Fox.java
|
||||
|
Reference in New Issue
Block a user