Title says it all, but here is an example:
Class name: ItemOnItem
Variable needed: getItemSlot

Code:
if(itemUsed == 3046 && useWith == 3046 || itemUsed == 3046 && useWith == 3046){
c.deleteItem(3046, getItemSlot(3046), 1);
c.deleteItem(3046, getItemSlot(3046), 1);
c.addItem(3044, 1);
c.addItem(229, 1);
c.sM("You have combined the liquid into 2 doses.");
}
basically I'm asking what's the best way to get variable getItemSlot from client.class to ItemOnItem? If there is an import (if that's what imports even do) can someone tell me what it is? Or if not can someone tell me how to get that variable recognized in ItemOnItem.class?

Edit: nvm, I had thought the "c." worked for the whole line.. not for just that variable so I fixed