diff options
author | Aikar <[email protected]> | 2018-07-04 15:32:30 -0400 |
---|---|---|
committer | Aikar <[email protected]> | 2018-07-04 15:32:30 -0400 |
commit | 3d1f804a22642b3d09f485a588a3beb6188ca15f (patch) | |
tree | 71bc753fea69407c3c1b4871d239c838f5ae089d /Spigot-API-Patches | |
parent | 467d4d463e522cc54f9d89594581f46ac2bb5c6e (diff) | |
download | Paper-3d1f804a22642b3d09f485a588a3beb6188ca15f.tar.gz Paper-3d1f804a22642b3d09f485a588a3beb6188ca15f.zip |
Vex#getOwner API
Get's the NPC that summoned this Vex
Diffstat (limited to 'Spigot-API-Patches')
-rw-r--r-- | Spigot-API-Patches/0125-Vex-getOwner-API.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Spigot-API-Patches/0125-Vex-getOwner-API.patch b/Spigot-API-Patches/0125-Vex-getOwner-API.patch new file mode 100644 index 0000000000..4c9818eba6 --- /dev/null +++ b/Spigot-API-Patches/0125-Vex-getOwner-API.patch @@ -0,0 +1,29 @@ +From 02a5c50ac1f88560d7555bc299b4d785f9aa63a4 Mon Sep 17 00:00:00 2001 +From: Aikar <[email protected]> +Date: Wed, 4 Jul 2018 15:29:21 -0400 +Subject: [PATCH] Vex#getOwner API + +Get's the NPC 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 a2f2fcae..540135c3 100644 +--- a/src/main/java/org/bukkit/entity/Vex.java ++++ b/src/main/java/org/bukkit/entity/Vex.java +@@ -1,6 +1,13 @@ + package org.bukkit.entity; + ++import com.destroystokyo.paper.entity.SentientNPC; ++ + /** + * Represents a Vex. + */ +-public interface Vex extends Monster { } ++public interface Vex extends Monster { ++ /** ++ * @return What Entity (most likely an Evoker, but not guaranteed) summoned this Vex ++ */ ++ SentientNPC getOwner(); // Paper ++} +-- +2.18.0 + |