Package net.storm.sdk.interact.builder
Class MenuFactory
java.lang.Object
net.storm.sdk.interact.builder.MenuFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemMenuBuilderbankInventoryItem(int itemId, int slot) Create a menu builder for the bank inventory item with the given item ID and slot.static ItemMenuBuilderbankItem(int itemId, int slot) Create a menu builder for the bank item with the given item ID and slot.static ItemMenuBuilderequipmentItem(int itemId, EquipmentSlot slot) Create a menu builder for the equipment item with the given item ID and slot.static ItemMenuBuilderinventoryItem(int itemId, int slot) Create a menu builder for the inventory item with the given item ID and slot.static ItemMenuBuilderitem(int itemId, int slot, int widgetId) Create a menu builder for the item with the given item ID, slot, and widget ID.static ActorMenuBuildernpc(int index) Create a menu builder for the NPC with the given index.static ActorMenuBuilderplayer(int index) Create a menu builder for the player with the given index.static TileEntityMenuBuildertileItem(int itemId, int sceneX, int sceneY) Create a menu builder for the tile item with the given item ID and scene coordinates.static TileEntityMenuBuildertileObject(int objectId, int sceneX, int sceneY) Create a menu builder for the tile object with the given object ID and scene coordinates.static WidgetMenuBuilderwidget(int widgetId) Create a menu builder for the widget with the given widget ID.
-
Constructor Details
-
MenuFactory
public MenuFactory()
-
-
Method Details
-
player
Create a menu builder for the player with the given index.- Parameters:
index- the player index- Returns:
- the menu builder
-
npc
Create a menu builder for the NPC with the given index.- Parameters:
index- the NPC index- Returns:
- the menu builder
-
item
Create a menu builder for the item with the given item ID, slot, and widget ID.- Parameters:
itemId- the item IDslot- the slotwidgetId- the widget ID- Returns:
- the menu builder
-
inventoryItem
Create a menu builder for the inventory item with the given item ID and slot.- Parameters:
itemId- the item IDslot- the slot- Returns:
- the menu builder
-
equipmentItem
Create a menu builder for the equipment item with the given item ID and slot.- Parameters:
itemId- the item IDslot- the slot- Returns:
- the menu builder
-
bankItem
Create a menu builder for the bank item with the given item ID and slot.- Parameters:
itemId- the item IDslot- the slot- Returns:
- the menu builder
-
bankInventoryItem
Create a menu builder for the bank inventory item with the given item ID and slot.- Parameters:
itemId- the item IDslot- the slot- Returns:
- the menu builder
-
tileObject
Create a menu builder for the tile object with the given object ID and scene coordinates.- Parameters:
objectId- the object IDsceneX- the scene X coordinate of the objectsceneY- the scene Y coordinate of the object- Returns:
- the menu builder
-
tileItem
Create a menu builder for the tile item with the given item ID and scene coordinates.- Parameters:
itemId- the item IDsceneX- the scene X coordinate of the item on the groundsceneY- the scene Y coordinate of the item on thr ground- Returns:
- the menu builder
-
widget
Create a menu builder for the widget with the given widget ID.- Parameters:
widgetId- the widget ID- Returns:
- the menu builder
-