Here is the code that I currently use:
public boolean isVisible(String name) {
return getBank().isSlotVisible(bot, getBank().getSlot(name), getBank().getSlot(name));
}
It returns whether the item is visible or not. However, if the item is in the first row, it will always return false. Any ideas what is wrong, or any better implementation for checking?