{
for (int i1 = 0; i1 < this.inventorySlots.inventorySlots.size(); ++i1)
{
Slot slot = (Slot) this.inventorySlots.inventorySlots.get(i1);
if (slot.func_111238_b() && this.func_146978_c(slot.xDisplayPosition, slot.yDisplayPosition, 16, 16, par1, par2))
{
ItemStack itemStack = slot.getStack();
if (itemStack != null)
{