diff options
Diffstat (limited to 'patches/api/0151-Turtle-API.patch')
-rw-r--r-- | patches/api/0151-Turtle-API.patch | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/patches/api/0151-Turtle-API.patch b/patches/api/0151-Turtle-API.patch index c15a3043f5..1d29a1055b 100644 --- a/patches/api/0151-Turtle-API.patch +++ b/patches/api/0151-Turtle-API.patch @@ -6,10 +6,10 @@ Subject: [PATCH] Turtle API diff --git a/src/main/java/com/destroystokyo/paper/event/entity/TurtleGoHomeEvent.java b/src/main/java/com/destroystokyo/paper/event/entity/TurtleGoHomeEvent.java new file mode 100644 -index 0000000000000000000000000000000000000000..560b46b7b4fdd3394bc5e8fc917776a5838eba09 +index 0000000000000000000000000000000000000000..91cede0e53cf6f1089e549053ebc2e2b190a1aab --- /dev/null +++ b/src/main/java/com/destroystokyo/paper/event/entity/TurtleGoHomeEvent.java -@@ -0,0 +1,51 @@ +@@ -0,0 +1,53 @@ +package com.destroystokyo.paper.event.entity; + +import org.bukkit.entity.Turtle; @@ -39,6 +39,7 @@ index 0000000000000000000000000000000000000000..560b46b7b4fdd3394bc5e8fc917776a5 + * + * @return The turtle + */ ++ @Override + public Turtle getEntity() { + return (Turtle) super.getEntity(); + } @@ -53,6 +54,7 @@ index 0000000000000000000000000000000000000000..560b46b7b4fdd3394bc5e8fc917776a5 + this.cancelled = cancel; + } + ++ @Override + public HandlerList getHandlers() { + return HANDLER_LIST; + } @@ -63,10 +65,10 @@ index 0000000000000000000000000000000000000000..560b46b7b4fdd3394bc5e8fc917776a5 +} diff --git a/src/main/java/com/destroystokyo/paper/event/entity/TurtleLayEggEvent.java b/src/main/java/com/destroystokyo/paper/event/entity/TurtleLayEggEvent.java new file mode 100644 -index 0000000000000000000000000000000000000000..d1b2bbb57280726690e704c5978d312d856243eb +index 0000000000000000000000000000000000000000..1492d168aa1dc538b732b0ff262074cc7c9900e6 --- /dev/null +++ b/src/main/java/com/destroystokyo/paper/event/entity/TurtleLayEggEvent.java -@@ -0,0 +1,88 @@ +@@ -0,0 +1,90 @@ +package com.destroystokyo.paper.event.entity; + +import org.bukkit.Location; @@ -102,6 +104,7 @@ index 0000000000000000000000000000000000000000..d1b2bbb57280726690e704c5978d312d + * + * @return The turtle + */ ++ @Override + public Turtle getEntity() { + return (Turtle) super.getEntity(); + } @@ -147,6 +150,7 @@ index 0000000000000000000000000000000000000000..d1b2bbb57280726690e704c5978d312d + this.cancelled = cancel; + } + ++ @Override + public HandlerList getHandlers() { + return HANDLER_LIST; + } @@ -157,10 +161,10 @@ index 0000000000000000000000000000000000000000..d1b2bbb57280726690e704c5978d312d +} diff --git a/src/main/java/com/destroystokyo/paper/event/entity/TurtleStartDiggingEvent.java b/src/main/java/com/destroystokyo/paper/event/entity/TurtleStartDiggingEvent.java new file mode 100644 -index 0000000000000000000000000000000000000000..4a53af5da307cd71e0e647917bec9be44136e6aa +index 0000000000000000000000000000000000000000..a84101fb1b478f3018f283bc47d3e73a7ae5bbc8 --- /dev/null +++ b/src/main/java/com/destroystokyo/paper/event/entity/TurtleStartDiggingEvent.java -@@ -0,0 +1,63 @@ +@@ -0,0 +1,65 @@ +package com.destroystokyo.paper.event.entity; + +import org.bukkit.Location; @@ -193,6 +197,7 @@ index 0000000000000000000000000000000000000000..4a53af5da307cd71e0e647917bec9be4 + * + * @return The turtle + */ ++ @Override + public Turtle getEntity() { + return (Turtle) super.getEntity(); + } @@ -216,6 +221,7 @@ index 0000000000000000000000000000000000000000..4a53af5da307cd71e0e647917bec9be4 + this.cancelled = cancel; + } + ++ @Override + public HandlerList getHandlers() { + return HANDLER_LIST; + } |