825d17c326
--- work/Bukkit Submodule work/Bukkit 96e09e50..0b95b68f: > SPIGOT-4650: Charging API for Vex --- work/CraftBukkit Submodule work/CraftBukkit f102d882..77ca7ca0: > Rebuild patches > Improve damage handling of dead entities > SPIGOT-4646: Test + fix InventoryWrapper.getContents > SPIGOT-4650: Charging API for Vex
25 Zeilen
735 B
Diff
25 Zeilen
735 B
Diff
From ed4de91ce14776b268c13b40d31e75e477fb96c5 Mon Sep 17 00:00:00 2001
|
|
From: Aikar <aikar@aikar.co>
|
|
Date: Wed, 4 Jul 2018 15:29:21 -0400
|
|
Subject: [PATCH] Vex#getSummoner API
|
|
|
|
Get's the Mob that summoned this Vex
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Vex.java b/src/main/java/org/bukkit/entity/Vex.java
|
|
index 6b61c4ab..7b9b21e5 100644
|
|
--- a/src/main/java/org/bukkit/entity/Vex.java
|
|
+++ b/src/main/java/org/bukkit/entity/Vex.java
|
|
@@ -22,4 +22,9 @@ public interface Vex extends Monster {
|
|
* @param charging new state
|
|
*/
|
|
void setCharging(boolean charging);
|
|
+
|
|
+ /**
|
|
+ * @return What Entity (most likely an Evoker, but not guaranteed) summoned this Vex
|
|
+ */
|
|
+ Mob getSummoner(); // Paper
|
|
}
|
|
--
|
|
2.21.0
|
|
|