Browse Source

Method added to replace collection

combat-2
MagicBot 8 months ago
parent
commit
dbd4c5d246
  1. 1
      src/engine/gameManager/ForgeManager.java
  2. 11
      src/engine/gameManager/NPCManager.java

1
src/engine/gameManager/ForgeManager.java

@ -423,4 +423,5 @@ public enum ForgeManager implements Runnable {
return modifier; return modifier;
} }
} }

11
src/engine/gameManager/NPCManager.java

@ -9,6 +9,7 @@
package engine.gameManager; package engine.gameManager;
import engine.InterestManagement.WorldGrid; import engine.InterestManagement.WorldGrid;
import engine.loot.WorkOrder;
import engine.math.Quaternion; import engine.math.Quaternion;
import engine.math.Vector3f; import engine.math.Vector3f;
import engine.math.Vector3fImmutable; import engine.math.Vector3fImmutable;
@ -516,4 +517,14 @@ public enum NPCManager {
return true; return true;
} }
public static ArrayList<Item> getAllCookingForVendor(NPC npc) {
ArrayList<Item> itemList = new ArrayList<>();
for (WorkOrder workOrder : ForgeManager.vendorWorkOrderLookup.get(npc))
itemList.addAll(workOrder.cooking);
return itemList;
}
} }

Loading…
Cancel
Save