2020-01-22 03:02:07 +01:00
|
|
|
From 6e1384d706d338edc012cc11eb6b81a464c8e2f6 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-01-22 03:02:07 +01:00
|
|
|
index 6b61c4ab..c34a3ea7 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-01-22 03:02:07 +01:00
|
|
|
2.25.0.windows.1
|
2018-10-07 05:31:21 +02:00
|
|
|
|