Class ItemInfos

java.lang.Object
net.storm.sdk.items.info.ItemInfos

public class ItemInfos extends Object
Static utility class for looking up detailed item information.

This class loads item definitions from a JSON resource file and provides a lookup method to retrieve ItemInfo objects by item ID. It handles item skin variants by mapping them to their base item.

The item database includes information such as:

  • Item weight
  • Equipment slot
  • Combat bonuses (attack, defense, strength, prayer)
  • Skill requirements
  • Weapon properties (attack speed, animations, range)

Example usage:


 // Look up item information
 ItemInfo whipInfo = ItemInfos.lookup(ItemID.ABYSSAL_WHIP);
 if (whipInfo != null) {
     System.out.println("Weight: " + whipInfo.getWeight() + " kg");
     System.out.println("Slot: " + whipInfo.getEquipmentType());

     // Get combat bonuses
     var bonuses = whipInfo.getEquipmentDefinition().getBonuses();
     System.out.println("Slash attack: " + bonuses.getAttSlash());
 }

 // Skin variants are automatically resolved
 ItemInfo scytheInfo = ItemInfos.lookup(ItemID.SCYTHE_OF_VITUR_OR);
 // Returns same info as base Scythe of Vitur
 

See Also:
  • Constructor Details

    • ItemInfos

      public ItemInfos()
  • Method Details

    • lookup

      public static ItemInfo lookup(int itemId)
      Looks up item information by item ID.

      This method handles item skin variants by automatically mapping them to their base item's information.

      Parameters:
      itemId - the item ID to look up
      Returns:
      the ItemInfo for the item, or null if not found