Moved spawnGroup method from AbstractInstance to InstanceWorld.

This commit is contained in:
MobiusDev
2018-04-29 23:32:51 +00:00
parent f4b9533ef2
commit 0d9dc852ad
3 changed files with 15 additions and 17 deletions

View File

@@ -244,4 +244,14 @@ public class InstanceWorld
{
return getNpcs().stream().filter(n -> n.getId() == id).findFirst().orElse(null);
}
/**
* Spawns group of instance NPCs
* @param groupName the name of group from XML definition to spawn
* @return list of spawned NPCs
*/
public List<L2Npc> spawnGroup(String groupName)
{
return _instance.spawnGroup(groupName);
}
}