Class MenuFactory

java.lang.Object
net.storm.sdk.interact.builder.MenuFactory

public class MenuFactory extends Object
  • Constructor Details

    • MenuFactory

      public MenuFactory()
  • Method Details

    • player

      public static ActorMenuBuilder player(int index)
      Create a menu builder for the player with the given index.
      Parameters:
      index - the player index
      Returns:
      the menu builder
    • npc

      public static ActorMenuBuilder npc(int index)
      Create a menu builder for the NPC with the given index.
      Parameters:
      index - the NPC index
      Returns:
      the menu builder
    • item

      public static ItemMenuBuilder item(int itemId, int slot, int widgetId)
      Create a menu builder for the item with the given item ID, slot, and widget ID.
      Parameters:
      itemId - the item ID
      slot - the slot
      widgetId - the widget ID
      Returns:
      the menu builder
    • inventoryItem

      public static ItemMenuBuilder inventoryItem(int itemId, int slot)
      Create a menu builder for the inventory item with the given item ID and slot.
      Parameters:
      itemId - the item ID
      slot - the slot
      Returns:
      the menu builder
    • equipmentItem

      public static ItemMenuBuilder equipmentItem(int itemId, EquipmentSlot slot)
      Create a menu builder for the equipment item with the given item ID and slot.
      Parameters:
      itemId - the item ID
      slot - the slot
      Returns:
      the menu builder
    • bankItem

      public static ItemMenuBuilder bankItem(int itemId, int slot)
      Create a menu builder for the bank item with the given item ID and slot.
      Parameters:
      itemId - the item ID
      slot - the slot
      Returns:
      the menu builder
    • bankInventoryItem

      public static ItemMenuBuilder bankInventoryItem(int itemId, int slot)
      Create a menu builder for the bank inventory item with the given item ID and slot.
      Parameters:
      itemId - the item ID
      slot - the slot
      Returns:
      the menu builder
    • tileObject

      public static TileEntityMenuBuilder tileObject(int objectId, int sceneX, int sceneY)
      Create a menu builder for the tile object with the given object ID and scene coordinates.
      Parameters:
      objectId - the object ID
      sceneX - the scene X coordinate of the object
      sceneY - the scene Y coordinate of the object
      Returns:
      the menu builder
    • tileItem

      public static TileEntityMenuBuilder tileItem(int itemId, int sceneX, int sceneY)
      Create a menu builder for the tile item with the given item ID and scene coordinates.
      Parameters:
      itemId - the item ID
      sceneX - the scene X coordinate of the item on the ground
      sceneY - the scene Y coordinate of the item on thr ground
      Returns:
      the menu builder
    • widget

      public static WidgetMenuBuilder widget(int widgetId)
      Create a menu builder for the widget with the given widget ID.
      Parameters:
      widgetId - the widget ID
      Returns:
      the menu builder