6061626364656667686970
ItemStack remaining = UtilInventory.dropStack(this, stackToDrop, this.getDirectionFacing(), this.getDirectionFacing()); // remaining == null if dropped successfully. if(remaining == null) { inventory.removeItem(1, stackToDrop); break inv; } } } }
5556575859606162636465
if(remaining != null) { stackToAdd.stackSize -= remaining.stackSize; if(stackToAdd.stackSize > 0) { chest.removeItem(stackToAdd.stackSize, stackToAdd); } } else { chest.removeItem(stackToAdd.stackSize, stackToAdd);
chest.removeItem(stackToAdd.stackSize, stackToAdd); } } else { chest.removeItem(stackToAdd.stackSize, stackToAdd); break; } } } }
5253545556575859606162
if(remaining != null) { stackToAdd.stackSize -= remaining.stackSize; } minecart.removeItem(stackToAdd.stackSize, stackToAdd); } } @Override @SideOnly(Side.CLIENT)