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