public class SimpleInventory extends SimpleItemQuery<SimpleItem>
Constructor and Description |
---|
SimpleInventory(ClientContext c) |
Modifier and Type | Method and Description |
---|---|
boolean |
canPickupItem(SimpleGroundItem groundItem)
Will return if you have enough space to pickup a grounditem or not.
|
boolean |
dropItem(SimpleItem item) |
boolean |
dropItems()
Will attempt to either shift-click drop or right click drop all items in the query
|
boolean |
dropItems(SimpleItemQuery<SimpleItem> itemQuery)
Will attempt to either shift-click drop or right click drop all items in the specified query
|
int |
getFreeSlots()
Will return the amount of free slots in your inventory, NOTE: This method DOES NOT populate the query
|
boolean |
inventoryFull()
Will return {true} if your inventory is full otherwise {false}, NOTE: This method DOES NOT populate the query
|
boolean |
itemOnItem(SimpleItem first,
SimpleItem second)
Will attempt to use an item on another item, will tab to your inventory if it is not currently opened
|
int |
itemSelectionState() |
boolean |
shiftDroppingEnabled()
Will return {true} if you have shift-dropping enabled otherwise {false}
|
filter, filter, filter, filterHasAction, filterHasAction, population
contains, filter, isEmpty, iterator, next, peekNext, populate, population, reverse, shuffle, size, sort, toStream
public SimpleInventory(ClientContext c)
public boolean dropItem(SimpleItem item)
public boolean dropItems()
public boolean dropItems(SimpleItemQuery<SimpleItem> itemQuery)
itemQuery
- the query of items to droppublic boolean inventoryFull()
public int getFreeSlots()
public boolean shiftDroppingEnabled()
public boolean itemOnItem(SimpleItem first, SimpleItem second)
first
- - The item to use on the second item for example a chiselsecond
- - The item being used upon for example an uncut emeraldpublic boolean canPickupItem(SimpleGroundItem groundItem)
groundItem
- the item to attempt to pickuppublic int itemSelectionState()