testserver/Spigot-API-Patches/0158-Allow-setting-the-vex-...

36 lines
993 B
Diff

From 6772c9bcb0f4cad1a8f63120a2b266bd1b129a46 Mon Sep 17 00:00:00 2001
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
index 7b9b21e5..23a15f8f 100644
--- a/src/main/java/org/bukkit/entity/Vex.java
+++ b/src/main/java/org/bukkit/entity/Vex.java
@@ -23,8 +23,19 @@ public interface Vex extends Monster {
*/
void setCharging(boolean charging);
+ // Paper start
/**
- * @return What Entity (most likely an Evoker, but not guaranteed) summoned this Vex
+ * Get the Mob that summoned this vex
+ *
+ * @return Mob that summoned this vex
+ */
+ Mob getSummoner();
+
+ /**
+ * Set the summoner of this vex
+ *
+ * @param summoner New summoner
*/
- Mob getSummoner(); // Paper
+ void setSummoner(Mob summoner);
+ // Paper end
}
--
2.21.0