2019-06-06 17:36:57 +02:00
|
|
|
From 59830b07555d739af07887b63b319dc26c039973 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
|
2019-06-06 17:36:57 +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
|
|
|
|
}
|
|
|
|
--
|
2019-04-23 06:47:07 +02:00
|
|
|
2.21.0
|
2018-10-07 05:31:21 +02:00
|
|
|
|