public void craft(){
        if((Screen.inventory.queue.type.equals("nothing"))||(Screen.inventory.queue.type.equals(result)&&Screen.inventory.queue.count<Screen.inventory.queue.maxCount)){
            if(type1!=null){
                Screen.inventory.removeItemAmount(type1,count1);
            }
            if(type2!=null){
                Screen.inventory.removeItemAmount(type2,count2);
            }
            if(type3!=null){
                Screen.inventory.removeItemAmount(type3,count3);
            }
            if(Screen.inventory.queue.type.equals("nothing")){
                Screen.inventory.queue.type=result;
                Screen.inventory.queue.count = resultCount;
                Screen.inventory.queue.setMax();
            }
            else if(Screen.inventory.queue.type.equals(result)&&Screen.inventory.queue.count<(Screen.inventory.queue.maxCount-resultCount)){
                Screen.inventory.queue.count += resultCount;
            }
        }
    }