aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0160-Turtle-API.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0160-Turtle-API.patch')
-rw-r--r--patches/api/0160-Turtle-API.patch11
1 files changed, 9 insertions, 2 deletions
diff --git a/patches/api/0160-Turtle-API.patch b/patches/api/0160-Turtle-API.patch
index 06abb703f4..8d4767cd07 100644
--- a/patches/api/0160-Turtle-API.patch
+++ b/patches/api/0160-Turtle-API.patch
@@ -221,10 +221,10 @@ index 0000000000000000000000000000000000000000..abeb24fccda2acfdb0dfdadacb8fe688
+ }
+}
diff --git a/src/main/java/org/bukkit/entity/Turtle.java b/src/main/java/org/bukkit/entity/Turtle.java
-index 0a4cd29930c2f1c28f5a3e6884c7dec45b5cac11..5375ea14097f4f10b2294488b92924a35a72d4d7 100644
+index 0a4cd29930c2f1c28f5a3e6884c7dec45b5cac11..8bee07c81172e189fab9b82b398983f509099474 100644
--- a/src/main/java/org/bukkit/entity/Turtle.java
+++ b/src/main/java/org/bukkit/entity/Turtle.java
-@@ -1,6 +1,55 @@
+@@ -1,6 +1,62 @@
package org.bukkit.entity;
+import org.bukkit.Location;
@@ -279,5 +279,12 @@ index 0a4cd29930c2f1c28f5a3e6884c7dec45b5cac11..5375ea14097f4f10b2294488b92924a3
+ * @param hasEgg True if carrying egg
+ */
+ void setHasEgg(boolean hasEgg);
++
++ /**
++ * Returns whether the turtle is currently laying an egg.
++ *
++ * @return whether the turtle is laying an egg
++ */
++ boolean isLayingEgg();
+ // Paper end
+}