Class Equipment

java.lang.Object
net.botwithus.rs3.game.inventories.Equipment

public final class Equipment extends Object
Equipment is a class to interact with the equipment interface
See Also:
  • Method Details

    • interact

      public static boolean interact(Equipment.Slot slot, int index)
      Interact with an item in the equipment
      Parameters:
      slot - the slot of the items to interact with
      index - the option index to interact with
      Returns:
      true if the interaction was successful
    • interact

      public static boolean interact(Equipment.Slot slot, String option)
      Interact with an item in the equipment
      Parameters:
      slot - the slot of the items to interact with
      option - the option to interact with
      Returns:
      true if the interaction was successful
    • interact

      public static boolean interact(String name, String option)
      Interact with an item in the equipment
      Parameters:
      name - the name of the items to interact with
      option - the option to interact with
      Returns:
      true if the interaction was successful
    • interact

      public static boolean interact(int id, String option)
      Interact with an item in the equipment
      Parameters:
      id - the id of the item to interact with
      option - the option to interact with
      Returns:
      true if the interaction was successful
    • interactByCategory

      public static boolean interactByCategory(int category, String option)
      Interact with an item in the backpack
      Parameters:
      category - the category of the items to interact with
      option - the option to interact with
      Returns:
      true if the interaction was successful
    • contains

      public static boolean contains(String name)
      Check if the backpack contains a specific item
      Parameters:
      name - the name of the items to check for
      Returns:
      true if the backpack contains the item
    • contains

      public static boolean contains(int id)
      Check if the backpack contains a specific item
      Parameters:
      id - the id of the item to check for
      Returns:
      true if the backpack contains the item
    • container

      public static InventoryContainer container()
      Get the InventoryContainer for Equipment
      Returns:
      the InventoryContainer for the players Equipment