Package com.epicbot.api.shared.methods
Interface IInventoryAPI
public interface IInventoryAPI
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(int... ids) booleanbooleanbooleancontainsAll(int... ids) booleancontainsAll(String... names) booleanbooleandropAll()booleandropAll(int... ids) booleanbooleanbooleandropAllExcept(int... ids) booleandropAllExcept(String... names) booleandropAllExcept(Predicate<Item> filter) booleandropItem(int... ids) booleandropItem(ItemWidget item) booleanbooleangetAll(ItemWidgetQueryRequest itemWidgetQueryRequest) intgetCount()intgetCount(boolean includeStackables) intgetCount(boolean includeStackables, int... ids) intintintgetCount(int... ids) intintintgetItem(int... ids) getItemAt(int index) getItems()getItems(int... ids) getItemWidget(int index) Gets the item widget at the given index.intintbooleaninteractItem(String action, int... ids) booleaninteractItem(String action, String... names) booleaninteractItem(String action, Predicate<Item> filter) booleanisEmpty()booleanisFull()booleanbooleanmoveItem(int fromIndex, int toIndex) Move the item to the given slot.default booleanmoveItem(ItemWidget item, int slotIndex) Move the item to the given slot.booleanonlyContains(int... ids) booleanonlyContains(String... names) booleanonlyContains(Predicate<Item> filter) query()booleanselectItem(int... ids) booleanselectItem(String... names) booleanselectItem(Predicate<Item> filter)
-
Field Details
-
SIZE
static final int SIZE- See Also:
-
-
Method Details
-
getItemWidget
Gets the item widget at the given index. Also works for slots with no item.- Parameters:
index- the slot index- Returns:
- the item widget or null if the index is invalid
-
getItems
List<ItemWidget> getItems() -
getItems
-
getItems
-
getItems
-
getItem
-
getItem
-
getItem
-
getItemAt
-
isItemSelected
boolean isItemSelected() -
getSelectedItemId
int getSelectedItemId() -
getSelectedItemName
String getSelectedItemName() -
getSelectedItemIndex
int getSelectedItemIndex() -
getSelectedItem
ItemWidget getSelectedItem() -
getCount
int getCount() -
getCount
int getCount(int... ids) -
getCount
-
getCount
int getCount(boolean includeStackables, int... ids) -
getCount
-
getCount
int getCount(boolean includeStackables) -
getCount
-
getCount
-
isFull
boolean isFull() -
isEmpty
boolean isEmpty() -
getEmptySlotCount
int getEmptySlotCount() -
contains
boolean contains(int... ids) -
contains
-
contains
-
containsAll
boolean containsAll(int... ids) -
containsAll
-
onlyContains
boolean onlyContains(int... ids) -
onlyContains
-
onlyContains
-
selectItem
boolean selectItem(int... ids) -
selectItem
-
selectItem
-
dropItem
boolean dropItem(int... ids) -
dropItem
-
dropItem
-
dropAll
boolean dropAll() -
dropAll
boolean dropAll(int... ids) -
dropAll
-
dropAll
-
dropAllExcept
boolean dropAllExcept(int... ids) -
dropAllExcept
-
dropAllExcept
-
interactItem
-
interactItem
-
interactItem
-
deselectItem
boolean deselectItem() -
moveItem
boolean moveItem(int fromIndex, int toIndex) Move the item to the given slot.- Parameters:
fromIndex- the slot index of the item to movetoIndex- the index of the target slot- Returns:
- true if successful, false otherwise
-
query
InventoryQueryBuilder query()
-