Class LoadoutFactory

java.lang.Object
net.storm.sdk.items.loadouts.LoadoutFactory

public class LoadoutFactory extends Object
Factory class for creating and managing equipment/inventory loadouts.

Loadouts define a preset configuration of equipment, inventory items, and rune pouch contents that can be equipped or geared up from the bank. This factory provides methods to create new loadouts or initialize builders from the player's current state.

Example usage:


 // Create a new empty loadout builder
 LoadoutBuilder builder = LoadoutFactory.newBuilder();

 // Create a loadout from current equipment
 LoadoutBuilder equipmentBuilder = LoadoutFactory.fromCurrentEquipment();

 // Create a loadout from current inventory
 LoadoutBuilder inventoryBuilder = LoadoutFactory.fromCurrentInventory();

 // Create a loadout from everything (equipment + inventory + rune pouch)
 LoadoutBuilder fullBuilder = LoadoutFactory.fromCurrentSetup();

 // Copy an existing loadout to modify it
 Loadout existingLoadout = ...;
 LoadoutBuilder copyBuilder = LoadoutFactory.fromCurrentLoadout(existingLoadout);

 // Build and use the loadout
 Loadout loadout = builder.build();
 loadout.equip(); // Gear up from bank
 

See Also:
  • Constructor Details

    • LoadoutFactory

      public LoadoutFactory()
  • Method Details

    • newBuilder

      public static LoadoutBuilder newBuilder()
      Creates a new empty loadout builder.

      Use this to build a loadout from scratch by adding items manually.

      Returns:
      a new LoadoutBuilder instance
    • fromCurrentRunePouch

      public static LoadoutBuilder fromCurrentRunePouch()
      Creates a loadout builder initialized with the current rune pouch contents.
      Returns:
      a LoadoutBuilder with the current rune pouch configuration
    • fromCurrentEquipment

      public static LoadoutBuilder fromCurrentEquipment()
      Creates a loadout builder initialized with the player's current equipment.

      This captures all currently worn items to create a loadout that can recreate the equipment setup.

      Returns:
      a LoadoutBuilder with the current equipment configuration
    • fromCurrentInventory

      public static LoadoutBuilder fromCurrentInventory()
      Creates a loadout builder initialized with the player's current inventory.

      This captures all items currently in the inventory to create a loadout that can recreate the inventory setup.

      Returns:
      a LoadoutBuilder with the current inventory configuration
    • fromCurrentSetup

      public static LoadoutBuilder fromCurrentSetup()
      Creates a loadout builder initialized with the player's complete current setup.

      This captures equipment, inventory, and rune pouch contents to create a comprehensive loadout of the player's current state.

      Returns:
      a LoadoutBuilder with the complete current setup
    • fromCurrentLoadout

      public static LoadoutBuilder fromCurrentLoadout(Loadout loadout)
      Creates a loadout builder initialized from an existing loadout.

      This allows you to copy and modify an existing loadout configuration.

      Parameters:
      loadout - the existing loadout to copy from
      Returns:
      a LoadoutBuilder initialized with the loadout's configuration