Add more fox API (#5743)
This commit is contained in:
parent
ae95311131
commit
aed4433aca
3 changed files with 137 additions and 0 deletions
73
patches/api/0320-Missing-Entity-Behavior-API.patch
Normal file
73
patches/api/0320-Missing-Entity-Behavior-API.patch
Normal file
|
@ -0,0 +1,73 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
|
||||
Date: Fri, 28 May 2021 21:06:59 -0400
|
||||
Subject: [PATCH] Missing Entity Behavior 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
|
||||
+++ b/src/main/java/org/bukkit/entity/Fox.java
|
||||
@@ -85,4 +85,62 @@ public interface Fox extends Animals, Sittable {
|
||||
RED,
|
||||
SNOW;
|
||||
}
|
||||
+
|
||||
+ // Paper start - Add more fox behavior API
|
||||
+ /**
|
||||
+ * Sets if the fox is interested.
|
||||
+ *
|
||||
+ * @param interested is interested
|
||||
+ */
|
||||
+ public void setInterested(boolean interested);
|
||||
+
|
||||
+ /**
|
||||
+ * Gets if the fox is interested.
|
||||
+ *
|
||||
+ * @return fox is interested
|
||||
+ */
|
||||
+ public boolean isInterested();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets if the fox is leaping.
|
||||
+ *
|
||||
+ * @param leaping is leaping
|
||||
+ */
|
||||
+ public void setLeaping(boolean leaping);
|
||||
+
|
||||
+ /**
|
||||
+ * Gets if the fox is leaping.
|
||||
+ *
|
||||
+ * @return fox is leaping
|
||||
+ */
|
||||
+ public boolean isLeaping();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets if the fox is defending.
|
||||
+ *
|
||||
+ * @param defending is defending
|
||||
+ */
|
||||
+ public void setDefending(boolean defending);
|
||||
+
|
||||
+ /**
|
||||
+ * Gets if the fox is defending.
|
||||
+ *
|
||||
+ * @return fox is defending
|
||||
+ */
|
||||
+ public boolean isDefending();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets if the fox face planted.
|
||||
+ *
|
||||
+ * @param faceplanted face planted
|
||||
+ */
|
||||
+ public void setFaceplanted(boolean faceplanted);
|
||||
+
|
||||
+ /**
|
||||
+ * Gets if the fox face planted.
|
||||
+ *
|
||||
+ * @return fox face planted
|
||||
+ */
|
||||
+ public boolean isFaceplanted();
|
||||
+ // Paper end - Add more fox behavior API
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue