From d02d0cb5e9a622ed1ab2c6f31c788a8bec5e5775 Mon Sep 17 00:00:00 2001 From: Pyrbu Date: Mon, 19 Aug 2024 17:52:41 +0200 Subject: [PATCH] expose Npc#getWorldName --- api/src/main/java/lol/pyr/znpcsplus/api/npc/Npc.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 c6cfdbd..6081060 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 @@ -81,6 +81,13 @@ public interface Npc extends PropertyHolder { */ World getWorld(); + /** + * Gets the name of the world this NPC is in + * Unlike {@link Npc#getWorld()} this will never be null + * @return The name of the world this NPC is in + */ + String getWorldName(); + /** * Gets the list of actions for this NPC * @return The {@link List} of {@link InteractionAction}s for this NPC