void afterUnmarshal(Unmarshaller u, Object parent) { wrappedItemData = new TIntObjectHashMap<WrapperItem>(); for (WrapperItem it : list) { wrappedItemData.put(it.getItemId(), it); } list = null; }
public TIntIntHashMap rollItems(int wrapperItemId, int playerLevel, ItemRace race) { TIntIntHashMap itemCountMap = new TIntIntHashMap(); final WrapperItem wrapperItem = wrappedItemData.get(wrapperItemId); if (wrapperItem == null) return itemCountMap; return wrapperItem.rollItems(playerLevel, race); }