Sync with L2jServer HighFive Feb 15th 2015.
This commit is contained in:
@ -30,6 +30,7 @@ import com.l2jserver.Config;
|
||||
import com.l2jserver.gameserver.GeoData;
|
||||
import com.l2jserver.gameserver.ThreadPoolManager;
|
||||
import com.l2jserver.gameserver.data.sql.impl.TerritoryTable;
|
||||
import com.l2jserver.gameserver.data.xml.impl.NpcData;
|
||||
import com.l2jserver.gameserver.datatables.NpcPersonalAIData;
|
||||
import com.l2jserver.gameserver.model.actor.L2Attackable;
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
@ -147,6 +148,19 @@ public class L2Spawn implements IPositionable, IIdentifiable, INamable
|
||||
_constructor = Class.forName(className).asSubclass(L2Npc.class).getConstructor(L2NpcTemplate.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a spawn.
|
||||
* @param npcId the NPC ID
|
||||
* @throws ClassCastException
|
||||
* @throws NoSuchMethodException
|
||||
* @throws ClassNotFoundException
|
||||
* @throws SecurityException
|
||||
*/
|
||||
public L2Spawn(int npcId) throws SecurityException, ClassNotFoundException, NoSuchMethodException, ClassCastException
|
||||
{
|
||||
this(NpcData.getInstance().getTemplate(npcId));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the maximum number of L2NpcInstance that this L2Spawn can manage.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user