Class Definitions


  • public class Definitions
    extends Object
    • Constructor Detail

      • Definitions

        public Definitions()
    • Method Detail

      • populate

        public static void populate()
        Loads and caches game definitions. Please note that this function is intended for internal use only
      • getVarpbit

        public static RSVarpbit getVarpbit​(int id)
      • getMaxConsumableFuzzyItem

        public static ItemDefinition getMaxConsumableFuzzyItem​(String name)

        4 dose infixes: " potion", " brew", "super ", " balm", "serum" "venom" "poison", " balance", "antifire", " remedy", "antidote", " rest

        2 dose infixes: " mix", "supermix"

        8 dose infixes: "ring of duel", "games necklace", "watering can"

        6 dose infixes: "amulet of glory", "skills necklace", "combat bracelet"

        5 dose infixes: "ring of wealth", "necklace of passage", "burning amulet", "ring of returning

        Parameters:
        name - The item key, doses/charges stripped
        Returns:
        The ItemDefinition of the max consumable item if found, otherwise returns the highest ID match