2020-04-02 23:07:06 +02:00
|
|
|
From eb1540ebf1461127e32f7a4148cd8afc0e8aa8b8 Mon Sep 17 00:00:00 2001
|
2018-10-07 05:31:21 +02:00
|
|
|
From: BillyGalbreath <Blake.Galbreath@GMail.com>
|
|
|
|
Date: Sat, 6 Oct 2018 21:47:09 -0500
|
|
|
|
Subject: [PATCH] Allow setting the vex's summoner
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Vex.java b/src/main/java/org/bukkit/entity/Vex.java
|
2020-04-02 23:07:06 +02:00
|
|
|
index 6b61c4ab7..c34a3ea7b 100644
|
2018-10-07 05:31:21 +02:00
|
|
|
--- a/src/main/java/org/bukkit/entity/Vex.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/Vex.java
|
2019-03-20 01:28:15 +01:00
|
|
|
@@ -1,5 +1,7 @@
|
|
|
|
package org.bukkit.entity;
|
|
|
|
|
|
|
|
+import org.jetbrains.annotations.Nullable;
|
|
|
|
+
|
|
|
|
/**
|
|
|
|
* Represents a Vex.
|
|
|
|
*/
|
|
|
|
@@ -22,4 +24,21 @@ public interface Vex extends Monster {
|
|
|
|
* @param charging new state
|
2018-10-07 05:31:21 +02:00
|
|
|
*/
|
2019-03-06 06:46:21 +01:00
|
|
|
void setCharging(boolean charging);
|
2019-03-20 01:28:15 +01:00
|
|
|
+
|
2018-10-07 05:31:21 +02:00
|
|
|
+ // Paper start
|
2019-03-20 01:28:15 +01:00
|
|
|
+ /**
|
2018-10-07 05:31:21 +02:00
|
|
|
+ * Get the Mob that summoned this vex
|
|
|
|
+ *
|
|
|
|
+ * @return Mob that summoned this vex
|
|
|
|
+ */
|
2019-03-20 01:28:15 +01:00
|
|
|
+ @Nullable
|
2018-10-07 05:31:21 +02:00
|
|
|
+ Mob getSummoner();
|
2019-03-06 06:46:21 +01:00
|
|
|
+
|
2018-10-07 05:31:21 +02:00
|
|
|
+ /**
|
|
|
|
+ * Set the summoner of this vex
|
|
|
|
+ *
|
|
|
|
+ * @param summoner New summoner
|
2019-03-20 01:28:15 +01:00
|
|
|
+ */
|
|
|
|
+ void setSummoner(@Nullable Mob summoner);
|
2018-10-07 05:31:21 +02:00
|
|
|
+ // Paper end
|
|
|
|
}
|
|
|
|
--
|
2020-04-02 23:07:06 +02:00
|
|
|
2.25.1
|
2018-10-07 05:31:21 +02:00
|
|
|
|