expose Npc#getWorldName

This commit is contained in:
Pyrbu 2024-08-19 17:52:41 +02:00
parent 71f52a987b
commit d02d0cb5e9

View file

@ -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