All pastes #453736 Raw Edit

Mine

public text v1 · immutable
·published 2007-04-23 05:03 UTC
rendered paste body
Index: L2_GameServer_c5/src/main/java/net/sf/l2j/gameserver/templates/L2NpcTemplate.java
===================================================================
--- L2_GameServer_c5/src/main/java/net/sf/l2j/gameserver/templates/L2NpcTemplate.java	(revision 1154)
+++ L2_GameServer_c5/src/main/java/net/sf/l2j/gameserver/templates/L2NpcTemplate.java	(working copy)
@@ -18,9 +18,6 @@
  */
 package net.sf.l2j.gameserver.templates;
 
-import java.util.List;
-import java.util.Map;
-
 import javolution.util.FastList;
 import javolution.util.FastMap;
 import net.sf.l2j.gameserver.model.L2DropCategory;
@@ -77,16 +74,16 @@
     public int     race;
     
     /** The table containing all Item that can be dropped by L2NpcInstance using this L2NpcTemplate*/
-    private final List<L2DropCategory> _categories = new FastList<L2DropCategory>();   
+    private final FastList<L2DropCategory> _categories = new FastList<L2DropCategory>();   
     
     /** The table containing all Minions that must be spawn with the L2NpcInstance using this L2NpcTemplate*/
-    private final List<L2MinionData>  _minions     = new FastList<L2MinionData>(0);
+    private final FastList<L2MinionData>  _minions     = new FastList<L2MinionData>(0);
     
-    private List<ClassId>             _teachInfo;
-    private Map<Integer, L2Skill> _skills;
-    private Map<Stats, Integer> _resists;
+    private FastList<ClassId>             _teachInfo;
+    private FastMap<Integer, L2Skill> _skills;
+    private FastMap<Stats, Integer> _resists;
 	// contains a list of quests for each event type (questStart, questAttack, questKill, etc)
-	private Map<Quest.QuestEventType, Quest[]> _questEvents;
+	private FastMap<Quest.QuestEventType, Quest[]> _questEvents;
 	
 
 
@@ -140,7 +137,7 @@
         _teachInfo.add(classId);
     }
     
-    public List<ClassId> getTeachInfo()
+    public FastList<ClassId> getTeachInfo()
     {
         return _teachInfo;
     }
@@ -221,7 +218,7 @@
     /**
      * Return the list of all possible UNCATEGORIZED drops of this L2NpcTemplate.<BR><BR>
      */
-    public List<L2DropCategory> getDropData()
+    public FastList<L2DropCategory> getDropData()
     {
         return _categories;
     }   
@@ -230,7 +227,7 @@
      * Return the list of all possible item drops of this L2NpcTemplate.<BR>
      * (ie full drops and part drops, mats, miscellaneous & UNCATEGORIZED)<BR><BR>
      */
-    public List<L2DropData> getAllDropData()
+    public FastList<L2DropData> getAllDropData()
     {
         FastList<L2DropData> lst = new FastList<L2DropData>();
         for (L2DropCategory tmp:_categories)
@@ -256,12 +253,12 @@
     /**
      * Return the list of all Minions that must be spawn with the L2NpcInstance using this L2NpcTemplate.<BR><BR>
      */
-    public List<L2MinionData> getMinionData()
+    public FastList<L2MinionData> getMinionData()
     {
         return _minions;
     }
 
-    public Map<Integer, L2Skill> getSkills()
+    public FastMap<Integer, L2Skill> getSkills()
     {
         return _skills;
     }