Minecraft wiki entry for transfer, associated text: Fails if the arguments are not specified correctly, or returns false if the destination already has items of a different type, and if the source slot was empty.