diff --git a/api/src/main/java/lol/pyr/znpcsplus/api/npc/Npc.java b/api/src/main/java/lol/pyr/znpcsplus/api/npc/Npc.java index 00c3efe..1c25a8d 100644 --- a/api/src/main/java/lol/pyr/znpcsplus/api/npc/Npc.java +++ b/api/src/main/java/lol/pyr/znpcsplus/api/npc/Npc.java @@ -8,6 +8,7 @@ import org.bukkit.World; import org.bukkit.entity.Player; import java.util.List; +import java.util.Set; import java.util.UUID; /** @@ -118,4 +119,9 @@ public interface Npc extends PropertyHolder { * @return The entity id of the packet entity that this npc object represents */ int getPacketEntityId(); + + /** + * @return The set of players that can currently see this npc + */ + Set getViewers(); }