@@ -0,0 +1,1874 @@
+package com.microsoft.Malmo.MissionHandlers;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport com.microsoft.Malmo.MissionHandlerInterfaces.IWantToQuit;%0Aimport com.microsoft.Malmo.Schemas.AgentQuitFromCollectingItem;%0Aimport com.microsoft.Malmo.Schemas.BlockOrItemSpecWithDescription;%0Aimport com.microsoft.Malmo.Schemas.BlockSpec;%0Aimport com.microsoft.Malmo.Schemas.BlockType;%0Aimport com.microsoft.Malmo.Schemas.MissionInit;%0A%0Aimport net.minecraft.block.Block;%0A%0Apublic class AgentQuitFromCollectingItemImplementation extends HandlerBase implements IWantToQuit%0A%7B%0A    AgentQuitFromCollectingItem params;%0A    List%3CString%3E itemTypeNames;%0A    String quitCode = %22%22;%0A%0A    @Override%0A    public boolean parseParameters(Object params)%0A    %7B%0A        if (params == null %7C%7C !(params instanceof AgentQuitFromCollectingItem))%0A            return false;%0A        %0A        this.params = (AgentQuitFromCollectingItem)params;%0A        // Flatten all the possible block type names for ease of matching later:%0A        this.itemTypeNames = new ArrayList%3CString%3E();%0A        for (BlockOrItemSpecWithDescription bs : this.params.getBlock())%0A        %7B%0A            for (String s : bs.getType())%0A            %7B%0A//                Block b = Block.getBlockFromName(bt.value());%0A//                this.blockTypeNames.add(b.getUnlocalizedName().toLowerCase());%0A            %7D%0A        %7D%0A        return true;%0A    %7D%0A%0A    @Override%0A    public boolean doIWantToQuit(MissionInit missionInit)%0A    %7B%0A        // TODO Auto-generated method stub%0A        return false;%0A    %7D%0A%0A    @Override%0A    public void prepare(MissionInit missionInit)%0A    %7B%0A        // TODO Auto-generated method stub%0A%0A    %7D%0A%0A    @Override%0A    public void cleanup()%0A    %7B%0A        // TODO Auto-generated method stub%0A%0A    %7D%0A%0A    @Override%0A    public String getOutcome()%0A    %7B%0A        // TODO Auto-generated method stub%0A        return null;%0A    %7D%0A%7D%0A

quit from collecting item type.